UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

64 lines (60 loc) 2.49 kB
'use strict'; var base = require('../../base.js'); var types = require('../../../lib/types.js'); /*********************************************************************************************************************** * This file is auto-generated. If you have an issue, please create a GitHub issue. * ***********************************************************************************************************************/ class MobilePlatformApplication extends base.Base { static apiVersion = types.ApiVersion.April25; static hasOne = {}; static hasMany = {}; static paths = [ { "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" }, { "http_method": "get", "operation": "get", "ids": [], "path": "mobile_platform_applications.json" }, { "http_method": "get", "operation": "get", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" }, { "http_method": "post", "operation": "post", "ids": [], "path": "mobile_platform_applications.json" }, { "http_method": "put", "operation": "put", "ids": ["id"], "path": "mobile_platform_applications/<id>.json" } ]; static resourceNames = [ { "singular": "mobile_platform_application", "plural": "mobile_platform_applications" } ]; static async find({ session, id }) { const result = await this.baseFind({ session: session, urlIds: { "id": id }, params: {}, }); return result.data ? result.data[0] : null; } static async delete({ session, id }) { const response = await this.request({ http_method: "delete", operation: "delete", session: session, urlIds: { "id": id }, params: {}, }); return response ? response.body : null; } static async all({ session, ...otherArgs }) { const response = await this.baseFind({ session: session, urlIds: {}, params: { ...otherArgs }, }); return response; } app_clip_application_id; application_id; enabled_app_clips; enabled_shared_webcredentials; enabled_universal_or_app_links; id; platform; sha256_cert_fingerprints; } exports.MobilePlatformApplication = MobilePlatformApplication; //# sourceMappingURL=mobile_platform_application.js.map