UNPKG

@shopify/shopify-api

Version:

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

1 lines 2.33 kB
{"version":3,"file":"currency.mjs","sources":["../../../../../../../rest/admin/2025-07/currency.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}\n\nexport class Currency extends Base {\n public static apiVersion = ApiVersion.July25;\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\": [], \"path\": \"currencies.json\"}\n ];\n protected static resourceNames: ResourceNames[] = [\n {\n \"singular\": \"currency\",\n \"plural\": \"currencies\"\n }\n ];\n\n public static async all(\n {\n session,\n ...otherArgs\n }: AllArgs\n ): Promise<FindAllResponse<Currency>> {\n const response = await this.baseFind<Currency>({\n session: session,\n urlIds: {},\n params: {...otherArgs},\n });\n\n return response;\n }\n\n public currency: string | null;\n public rate_updated_at: string | null;\n}\n"],"names":[],"mappings":";;;AAAA;;AAEwH;AAYlH,MAAO,QAAS,SAAQ,IAAI,CAAA;AACzB,IAAA,OAAO,UAAU,GAAG,UAAU,CAAC,MAAM;AAElC,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,EAAE,EAAE,MAAM,EAAE,iBAAiB;KAChF;IACS,OAAO,aAAa,GAAoB;AAChD,QAAA;AACE,YAAA,UAAU,EAAE,UAAU;AACtB,YAAA,QAAQ,EAAE;AACX;KACF;IAEM,aAAa,GAAG,CACrB,EACE,OAAO,EACP,GAAG,SAAS,EACJ,EAAA;AAEV,QAAA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAW;AAC7C,YAAA,OAAO,EAAE,OAAO;AAChB,YAAA,MAAM,EAAE,EAAE;AACV,YAAA,MAAM,EAAE,EAAC,GAAG,SAAS,EAAC;AACvB,SAAA,CAAC;AAEF,QAAA,OAAO,QAAQ;IACjB;AAEO,IAAA,QAAQ;AACR,IAAA,eAAe;;;;;"}