@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
1 lines • 2.65 kB
Source Map (JSON)
{"version":3,"file":"locations_for_move.mjs","sources":["../../../../../../../rest/admin/2025-01/locations_for_move.ts"],"sourcesContent":["/***********************************************************************************************************************\n* This file is auto-generated. If you have an issue, please create a GitHub issue. *\n***********************************************************************************************************************/\n\nimport {Base, FindAllResponse} from '../../base';\nimport {ResourcePath, ResourceNames} from '../../types';\nimport {Session} from '../../../lib/session/session';\nimport {ApiVersion} from '../../../lib/types';\n\ninterface AllArgs {\n [key: string]: unknown;\n session: Session;\n fulfillment_order_id?: number | string | null;\n}\n\nexport class LocationsForMove extends Base {\n public static apiVersion = ApiVersion.January25;\n\n protected static hasOne: {[key: string]: typeof Base} = {};\n protected static hasMany: {[key: string]: typeof Base} = {};\n protected static paths: ResourcePath[] = [\n {\"http_method\": \"get\", \"operation\": \"get\", \"ids\": [\"fulfillment_order_id\"], \"path\": \"fulfillment_orders/<fulfillment_order_id>/locations_for_move.json\"}\n ];\n protected static resourceNames: ResourceNames[] = [\n {\n \"singular\": \"locations_for_move\",\n \"plural\": \"locations_for_moves\"\n }\n ];\n\n public static async all(\n {\n session,\n fulfillment_order_id = null,\n ...otherArgs\n }: AllArgs\n ): Promise<FindAllResponse<LocationsForMove>> {\n const response = await this.baseFind<LocationsForMove>({\n session: session,\n urlIds: {\"fulfillment_order_id\": fulfillment_order_id},\n params: {...otherArgs},\n });\n\n return response;\n }\n\n public locations_for_move: {[key: string]: unknown}[] | null;\n}\n"],"names":[],"mappings":";;;AAAA;;AAEwH;AAalH,MAAO,gBAAiB,SAAQ,IAAI,CAAA;AACjC,IAAA,OAAO,UAAU,GAAG,UAAU,CAAC,SAAS;AAErC,IAAA,OAAO,MAAM,GAAiC,EAAE;AAChD,IAAA,OAAO,OAAO,GAAiC,EAAE;IACjD,OAAO,KAAK,GAAmB;AACvC,QAAA,EAAC,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,sBAAsB,CAAC,EAAE,MAAM,EAAE,mEAAmE;KACxJ;IACS,OAAO,aAAa,GAAoB;AAChD,QAAA;AACE,YAAA,UAAU,EAAE,oBAAoB;AAChC,YAAA,QAAQ,EAAE;AACX;KACF;AAEM,IAAA,aAAa,GAAG,CACrB,EACE,OAAO,EACP,oBAAoB,GAAG,IAAI,EAC3B,GAAG,SAAS,EACJ,EAAA;AAEV,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAmB;AACrD,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,MAAM,EAAE,EAAC,sBAAsB,EAAE,oBAAoB,EAAC;AACtD,YAAA,MAAM,EAAE,EAAC,GAAG,SAAS,EAAC;AACvB,SAAA,CAAC;AAEF,QAAA,OAAO,QAAQ;IACjB;AAEO,IAAA,kBAAkB;;;;;"}