@agnostack/next-shopify 1.14.1 → 1.15.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/lib/handlers/api/auth.js +11 -15
- package/dist/lib/handlers/api/auth.js.map +1 -1
- package/dist/lib/handlers/api/billing.d.ts.map +1 -1
- package/dist/lib/handlers/api/billing.js +9 -12
- package/dist/lib/handlers/api/billing.js.map +1 -1
- package/dist/lib/handlers/api/callback.js +33 -37
- package/dist/lib/handlers/api/callback.js.map +1 -1
- package/dist/lib/handlers/api/index.js +7 -25
- package/dist/lib/handlers/api/index.js.map +1 -1
- package/dist/lib/handlers/api/uninstall.d.ts.map +1 -1
- package/dist/lib/handlers/api/uninstall.js +8 -11
- package/dist/lib/handlers/api/uninstall.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/appInstallation.js +7 -11
- package/dist/lib/handlers/api/verifiable/appInstallation.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/graph.d.ts.map +1 -1
- package/dist/lib/handlers/api/verifiable/graph.js +22 -25
- package/dist/lib/handlers/api/verifiable/graph.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/index.js +5 -21
- package/dist/lib/handlers/api/verifiable/index.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/proxy.d.ts.map +1 -1
- package/dist/lib/handlers/api/verifiable/proxy.js +32 -38
- package/dist/lib/handlers/api/verifiable/proxy.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/rest.d.ts.map +1 -1
- package/dist/lib/handlers/api/verifiable/rest.js +19 -22
- package/dist/lib/handlers/api/verifiable/rest.js.map +1 -1
- package/dist/lib/handlers/api/verifiable/token.js +23 -26
- package/dist/lib/handlers/api/verifiable/token.js.map +1 -1
- package/dist/lib/handlers/api/webhook.d.ts.map +1 -1
- package/dist/lib/handlers/api/webhook.js +9 -12
- package/dist/lib/handlers/api/webhook.js.map +1 -1
- package/dist/lib/handlers/index.js +2 -18
- package/dist/lib/handlers/index.js.map +1 -1
- package/dist/lib/handlers/ssr/index.js +2 -18
- package/dist/lib/handlers/ssr/index.js.map +1 -1
- package/dist/lib/handlers/ssr/protect.js +17 -24
- package/dist/lib/handlers/ssr/protect.js.map +1 -1
- package/dist/lib/handlers/ssr/wrap.js +6 -10
- package/dist/lib/handlers/ssr/wrap.js.map +1 -1
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +5 -25
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/utils/billing.js +18 -23
- package/dist/lib/utils/billing.js.map +1 -1
- package/dist/lib/utils/crypto.js +15 -25
- package/dist/lib/utils/crypto.js.map +1 -1
- package/dist/lib/utils/firebase.js +17 -29
- package/dist/lib/utils/firebase.js.map +1 -1
- package/dist/lib/utils/headers.js +6 -13
- package/dist/lib/utils/headers.js.map +1 -1
- package/dist/lib/utils/index.d.ts +0 -2
- package/dist/lib/utils/index.js +8 -26
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/session.js +59 -64
- package/dist/lib/utils/session.js.map +1 -1
- package/dist/lib/utils/shopify-api-js/oauth.js +16 -23
- package/dist/lib/utils/shopify-api-js/oauth.js.map +1 -1
- package/dist/lib/utils/shopify.js +25 -37
- package/dist/lib/utils/shopify.js.map +1 -1
- package/dist/lib/utils/token.d.ts +1 -1
- package/dist/lib/utils/token.js +11 -15
- package/dist/lib/utils/token.js.map +1 -1
- package/dist/lib/withShopify.js +77 -81
- package/dist/lib/withShopify.js.map +1 -1
- package/dist/react/hooks/index.js +1 -17
- package/dist/react/hooks/index.js.map +1 -1
- package/dist/react/hooks/useVerification.js +7 -11
- package/dist/react/hooks/useVerification.js.map +1 -1
- package/dist/react/index.js +1 -17
- package/dist/react/index.js.map +1 -1
- package/dist/runtime/index.js +1 -17
- package/dist/runtime/index.js.map +1 -1
- package/dist/shared/constants.js +11 -15
- package/dist/shared/constants.js.map +1 -1
- package/dist/shared/datetime.js +83 -110
- package/dist/shared/datetime.js.map +1 -1
- package/dist/shared/display.js +154 -236
- package/dist/shared/display.js.map +1 -1
- package/dist/shared/errors.d.ts +0 -5
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +5 -34
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/graph.js +11 -14
- package/dist/shared/graph.js.map +1 -1
- package/dist/shared/index.js +10 -26
- package/dist/shared/index.js.map +1 -1
- package/dist/shared/match.js +17 -25
- package/dist/shared/match.js.map +1 -1
- package/dist/shared/request.d.ts +5 -0
- package/dist/shared/request.d.ts.map +1 -1
- package/dist/shared/request.js +32 -15
- package/dist/shared/request.js.map +1 -1
- package/dist/shared/shopify.d.ts +1 -6
- package/dist/shared/shopify.d.ts.map +1 -1
- package/dist/shared/shopify.js +21 -54
- package/dist/shared/shopify.js.map +1 -1
- package/dist/shared/subtlecrypto.js +13 -39
- package/dist/shared/subtlecrypto.js.map +1 -1
- package/dist/shared/verification.js +23 -29
- package/dist/shared/verification.js.map +1 -1
- package/dist/umd/lib/handlers/api/auth.d.ts +2 -0
- package/dist/umd/lib/handlers/api/auth.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/billing.d.ts +2 -0
- package/dist/umd/lib/handlers/api/billing.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/callback.d.ts +2 -0
- package/dist/umd/lib/handlers/api/callback.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/index.d.ts +10 -0
- package/dist/umd/lib/handlers/api/index.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/types.d.ts +1 -0
- package/dist/umd/lib/handlers/api/types.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/uninstall.d.ts +2 -0
- package/dist/umd/lib/handlers/api/uninstall.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/verifiable/appInstallation.d.ts +2 -0
- package/dist/umd/lib/handlers/api/verifiable/appInstallation.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/verifiable/graph.d.ts +2 -0
- package/dist/umd/lib/handlers/api/verifiable/graph.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/verifiable/index.d.ts +6 -0
- package/dist/umd/lib/handlers/api/verifiable/index.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/verifiable/proxy.d.ts +2 -0
- package/dist/umd/lib/handlers/api/verifiable/proxy.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/verifiable/rest.d.ts +2 -0
- package/dist/umd/lib/handlers/api/verifiable/rest.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/verifiable/token.d.ts +4 -0
- package/dist/umd/lib/handlers/api/verifiable/token.d.ts.map +1 -0
- package/dist/umd/lib/handlers/api/webhook.d.ts +2 -0
- package/dist/umd/lib/handlers/api/webhook.d.ts.map +1 -0
- package/dist/umd/lib/handlers/index.d.ts +3 -0
- package/dist/umd/lib/handlers/index.d.ts.map +1 -0
- package/dist/umd/lib/handlers/ssr/index.d.ts +3 -0
- package/dist/umd/lib/handlers/ssr/index.d.ts.map +1 -0
- package/dist/umd/lib/handlers/ssr/protect.d.ts +16 -0
- package/dist/umd/lib/handlers/ssr/protect.d.ts.map +1 -0
- package/dist/umd/lib/handlers/ssr/types.d.ts +1 -0
- package/dist/umd/lib/handlers/ssr/types.d.ts.map +1 -0
- package/dist/umd/lib/handlers/ssr/wrap.d.ts +9 -0
- package/dist/umd/lib/handlers/ssr/wrap.d.ts.map +1 -0
- package/dist/umd/lib/handlers/types.d.ts +1 -0
- package/dist/umd/lib/handlers/types.d.ts.map +1 -0
- package/dist/umd/lib/index.d.ts +6 -0
- package/dist/umd/lib/index.d.ts.map +1 -0
- package/dist/umd/lib/types.d.ts +1 -0
- package/dist/umd/lib/types.d.ts.map +1 -0
- package/dist/umd/lib/utils/billing.d.ts +24 -0
- package/dist/umd/lib/utils/billing.d.ts.map +1 -0
- package/dist/umd/lib/utils/crypto.d.ts +22 -0
- package/dist/umd/lib/utils/crypto.d.ts.map +1 -0
- package/dist/umd/lib/utils/firebase.d.ts +25 -0
- package/dist/umd/lib/utils/firebase.d.ts.map +1 -0
- package/dist/umd/lib/utils/headers.d.ts +5 -0
- package/dist/umd/lib/utils/headers.d.ts.map +1 -0
- package/dist/umd/lib/utils/index.d.ts +9 -0
- package/dist/umd/lib/utils/index.d.ts.map +1 -0
- package/dist/umd/lib/utils/session.d.ts +41 -0
- package/dist/umd/lib/utils/session.d.ts.map +1 -0
- package/dist/umd/lib/utils/shopify-api-js/oauth.d.ts +9 -0
- package/dist/umd/lib/utils/shopify-api-js/oauth.d.ts.map +1 -0
- package/dist/umd/lib/utils/shopify.d.ts +26 -0
- package/dist/umd/lib/utils/shopify.d.ts.map +1 -0
- package/dist/umd/lib/utils/token.d.ts +19 -0
- package/dist/umd/lib/utils/token.d.ts.map +1 -0
- package/dist/umd/lib/utils/types.d.ts +1 -0
- package/dist/umd/lib/utils/types.d.ts.map +1 -0
- package/dist/umd/lib/withShopify.d.ts +6 -0
- package/dist/umd/lib/withShopify.d.ts.map +1 -0
- package/dist/umd/react/hooks/index.d.ts +2 -0
- package/dist/umd/react/hooks/index.d.ts.map +1 -0
- package/dist/umd/react/hooks/useVerification.d.ts +8 -0
- package/dist/umd/react/hooks/useVerification.d.ts.map +1 -0
- package/dist/umd/react/index.d.ts +2 -0
- package/dist/umd/react/index.d.ts.map +1 -0
- package/dist/umd/react/types.d.ts +1 -0
- package/dist/umd/react/types.d.ts.map +1 -0
- package/dist/umd/runtime/index.d.ts +2 -0
- package/dist/umd/runtime/index.d.ts.map +1 -0
- package/dist/umd/runtime/types.d.ts +1 -0
- package/dist/umd/runtime/types.d.ts.map +1 -0
- package/dist/umd/shared/constants.d.ts +211 -0
- package/dist/umd/shared/constants.d.ts.map +1 -0
- package/dist/umd/shared/datetime.d.ts +96 -0
- package/dist/umd/shared/datetime.d.ts.map +1 -0
- package/dist/umd/shared/display.d.ts +102 -0
- package/dist/umd/shared/display.d.ts.map +1 -0
- package/dist/umd/shared/errors.d.ts +19 -0
- package/dist/umd/shared/errors.d.ts.map +1 -0
- package/dist/umd/shared/graph.d.ts +24 -0
- package/dist/umd/shared/graph.d.ts.map +1 -0
- package/dist/umd/shared/index.d.ts +11 -0
- package/dist/umd/shared/index.d.ts.map +1 -0
- package/dist/umd/shared/match.d.ts +6 -0
- package/dist/umd/shared/match.d.ts.map +1 -0
- package/dist/umd/shared/request.d.ts +16 -0
- package/dist/umd/shared/request.d.ts.map +1 -0
- package/dist/umd/shared/shopify.d.ts +31 -0
- package/dist/umd/shared/shopify.d.ts.map +1 -0
- package/dist/umd/shared/subtlecrypto.d.ts +41 -0
- package/dist/umd/shared/subtlecrypto.d.ts.map +1 -0
- package/dist/umd/shared/types.d.ts +1 -0
- package/dist/umd/shared/types.d.ts.map +1 -0
- package/dist/umd/shared/verification.d.ts +24 -0
- package/dist/umd/shared/verification.d.ts.map +1 -0
- package/dist/umd/umd-verification.js +968 -0
- package/dist/umd/umd-verification.js.map +1 -0
- package/dist/umd/verification/errors.d.ts +6 -0
- package/dist/umd/verification/errors.d.ts.map +1 -0
- package/dist/umd/verification/index.d.ts +2 -0
- package/dist/umd/verification/index.d.ts.map +1 -0
- package/dist/umd/verification/rawbody.d.ts.map +1 -0
- package/dist/umd/verification/types.d.ts +1 -0
- package/dist/umd/verification/types.d.ts.map +1 -0
- package/dist/umd/verification/verification.d.ts.map +1 -0
- package/dist/verification/errors.d.ts +6 -0
- package/dist/verification/errors.d.ts.map +1 -0
- package/dist/verification/errors.js +22 -0
- package/dist/verification/errors.js.map +1 -0
- package/dist/verification/index.d.ts +2 -0
- package/dist/verification/index.d.ts.map +1 -0
- package/dist/verification/index.js +2 -0
- package/dist/verification/index.js.map +1 -0
- package/dist/verification/rawbody.d.ts +2 -0
- package/dist/verification/rawbody.d.ts.map +1 -0
- package/dist/{lib/utils → verification}/rawbody.js +4 -10
- package/dist/verification/rawbody.js.map +1 -0
- package/dist/verification/types.d.ts +1 -0
- package/dist/verification/types.d.ts.map +1 -0
- package/dist/verification/types.js +1 -0
- package/dist/verification/types.js.map +1 -0
- package/dist/verification/verification.d.ts +8 -0
- package/dist/verification/verification.d.ts.map +1 -0
- package/dist/{lib/utils → verification}/verification.js +20 -21
- package/dist/verification/verification.js.map +1 -0
- package/node_modules/browser-monads-ts/LICENSE +21 -0
- package/node_modules/browser-monads-ts/README.md +46 -0
- package/node_modules/browser-monads-ts/dist/browser-monads-ts.cjs.js +2 -0
- package/node_modules/browser-monads-ts/dist/browser-monads-ts.cjs.js.map +1 -0
- package/node_modules/browser-monads-ts/dist/browser-monads-ts.es.js +12 -0
- package/node_modules/browser-monads-ts/dist/browser-monads-ts.es.js.map +1 -0
- package/node_modules/browser-monads-ts/dist/index.d.ts +5 -0
- package/node_modules/browser-monads-ts/dist/index.d.ts.map +1 -0
- package/node_modules/browser-monads-ts/package.json +79 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/http-errors/HISTORY.md +180 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +289 -0
- package/node_modules/http-errors/package.json +50 -0
- package/node_modules/iconv-lite/Changelog.md +162 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +156 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/node_modules/iconv-lite/encodings/index.js +22 -0
- package/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/node_modules/iconv-lite/lib/index.js +153 -0
- package/node_modules/iconv-lite/lib/streams.js +121 -0
- package/node_modules/iconv-lite/package.json +46 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/nothing-mock/LICENSE +21 -0
- package/node_modules/nothing-mock/README.md +266 -0
- package/node_modules/nothing-mock/dist/nothing-mock.es.js +2 -0
- package/node_modules/nothing-mock/dist/nothing-mock.es.js.map +1 -0
- package/node_modules/nothing-mock/dist/nothing-mock.js +2 -0
- package/node_modules/nothing-mock/dist/nothing-mock.js.map +1 -0
- package/node_modules/nothing-mock/dist/nothing-mock.modern.js +2 -0
- package/node_modules/nothing-mock/dist/nothing-mock.modern.js.map +1 -0
- package/node_modules/nothing-mock/dist/nothing-mock.umd.js +2 -0
- package/node_modules/nothing-mock/dist/nothing-mock.umd.js.map +1 -0
- package/node_modules/nothing-mock/index.d.ts +6 -0
- package/node_modules/nothing-mock/package.json +29 -0
- package/node_modules/nothing-mock/src/index.js +15 -0
- package/node_modules/raw-body/HISTORY.md +308 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/SECURITY.md +24 -0
- package/node_modules/raw-body/index.d.ts +87 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +49 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/statuses/HISTORY.md +82 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +136 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/package.json +22 -4
- package/dist/lib/utils/rawbody.d.ts.map +0 -1
- package/dist/lib/utils/rawbody.js.map +0 -1
- package/dist/lib/utils/verification.d.ts.map +0 -1
- package/dist/lib/utils/verification.js.map +0 -1
- /package/dist/{lib/utils → umd/verification}/rawbody.d.ts +0 -0
- /package/dist/{lib/utils → umd/verification}/verification.d.ts +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
export function normalizeShopifyId(shopifyData: any): {
|
|
2
|
+
gid?: string | undefined;
|
|
3
|
+
entity_type?: string | undefined;
|
|
4
|
+
entity_id?: string | undefined;
|
|
5
|
+
id?: string | undefined;
|
|
6
|
+
};
|
|
7
|
+
export function random(max?: number, min?: number): number;
|
|
8
|
+
export function nextRandom(max?: number, min?: number): any;
|
|
9
|
+
export function arrayRandom(_values: any, _max?: number): any[];
|
|
10
|
+
export function arrayRandomItem(_values: any): any;
|
|
11
|
+
export function isArray(value: any): boolean;
|
|
12
|
+
export function isSet(value: any): boolean;
|
|
13
|
+
export function isType(value: any, type: any): boolean;
|
|
14
|
+
export function isTypeEnhanced(value: any, type: any): boolean;
|
|
15
|
+
export function safeTrim(value: any): any;
|
|
16
|
+
export function safeParse(value: any, trim: any): any;
|
|
17
|
+
export function ensureString(string: any): string;
|
|
18
|
+
export function ensureStringOnly(string: any): string;
|
|
19
|
+
export function ensureStringAscii(string: any): string;
|
|
20
|
+
export function ensureStringClean(string: any): string;
|
|
21
|
+
export function ensureAlphaNumeric(string: any): string;
|
|
22
|
+
export function isNumericOnly(value: any): boolean;
|
|
23
|
+
export function isNumericNegatable(value: any): boolean;
|
|
24
|
+
export function ensureNumeric(string: any): number;
|
|
25
|
+
export function ensureNumericOnly(string: any): number;
|
|
26
|
+
export function ensureNumericNegatable(string: any): number;
|
|
27
|
+
export function ensureNumericConstrained(value: any, { min: _min, max: _max }?: {
|
|
28
|
+
min?: number | undefined;
|
|
29
|
+
max?: number | undefined;
|
|
30
|
+
}): number;
|
|
31
|
+
export function ensureArray(array?: any[]): any[];
|
|
32
|
+
export function ensureArraySet(arrayOrSet: any): any[];
|
|
33
|
+
export function arrayEmpty(array: any, disableEmptyString?: boolean): boolean;
|
|
34
|
+
export function arrayNotEmpty(array: any, disableEmptyString?: boolean): boolean;
|
|
35
|
+
export function findLastMatch(array: any, filterCallback?: (value: any) => any): any;
|
|
36
|
+
export function ensureObject(object: any): any;
|
|
37
|
+
export function objectEmpty(object: any): boolean;
|
|
38
|
+
export function objectNotEmpty(object: any): boolean;
|
|
39
|
+
export function nullable(object: any): any;
|
|
40
|
+
export function objectContainsAnyValue(object: any): boolean;
|
|
41
|
+
export function cleanObject(object: any, allowEmptyLeafs: any, isEmptyCallback: any): any;
|
|
42
|
+
export function stringNotEmptyOnly(stringable: any): boolean;
|
|
43
|
+
export function stringEmptyOnly(stringable: any): boolean;
|
|
44
|
+
export function stringNotEmpty(stringable: any): boolean;
|
|
45
|
+
export function stringEmpty(stringable: any): boolean;
|
|
46
|
+
export function compareNumber(number1?: number, number2?: number): number;
|
|
47
|
+
export function compareString(string1: any, string2: any): number;
|
|
48
|
+
export function compareEntryKeys([string1]: [any], [string2]: [any]): number;
|
|
49
|
+
export function objectToSortedString(object: any, separator?: string): string;
|
|
50
|
+
export function isHTML(string: any): any;
|
|
51
|
+
export function freeze(logMessage: any, object: any, type?: string): void;
|
|
52
|
+
export function replaceSpaces(string: any, replacement?: string): any;
|
|
53
|
+
export function zencase(string: any, replacement?: string): any;
|
|
54
|
+
export function dashcase(string: any): any;
|
|
55
|
+
export function undashcase(string: any, replacement?: string): string;
|
|
56
|
+
export function snakecase(string: any): any;
|
|
57
|
+
export function unsnakecase(string: any, replacement?: string): string;
|
|
58
|
+
export function uppercase(string: any): string;
|
|
59
|
+
export function lowercase(string: any, defaultValue?: string): string;
|
|
60
|
+
export function slugify(string: any): string;
|
|
61
|
+
export function capitalize(string: any): string;
|
|
62
|
+
export function camelCase(string: any): string;
|
|
63
|
+
export function titleCase(string: any, _overrides: any): string;
|
|
64
|
+
export function removeLeadingSlash(string: any): string;
|
|
65
|
+
export function removeLeadingTrailingQuotes(string: any): string;
|
|
66
|
+
export function removeTrailingSlash(string: any): string;
|
|
67
|
+
export function removeLeadingTrailingSlash(string: any): string;
|
|
68
|
+
export function ensureLeadingSlash(string: any): string;
|
|
69
|
+
export function ensureTrailingSlash(string: any): string;
|
|
70
|
+
export function ensureExtension(string: any, extension: any): any;
|
|
71
|
+
export function wrappedEncode(basePath: any, _wrappingPath: any): string;
|
|
72
|
+
export function splitCommas(value: any): any[];
|
|
73
|
+
export function combineCommas(values: any): any[];
|
|
74
|
+
export function normalizeArray(input: any, separator?: string): any;
|
|
75
|
+
export function arrayToObject(arrayable: any, key: any): any;
|
|
76
|
+
export function isTrue(value: any, falsy: any): boolean;
|
|
77
|
+
export function parseKeywords(keywordGroup: any, previous: any): string;
|
|
78
|
+
export function parseKeywordGroups(keywordGroups: any): string;
|
|
79
|
+
export function parseProjectName(_name: any): {
|
|
80
|
+
name: string;
|
|
81
|
+
parts: string[];
|
|
82
|
+
organization: string;
|
|
83
|
+
projectName: string;
|
|
84
|
+
};
|
|
85
|
+
export function parseProject(packageInfo: any): (string | {
|
|
86
|
+
keywords: any;
|
|
87
|
+
appOwner: any;
|
|
88
|
+
appName: any;
|
|
89
|
+
siteName: any;
|
|
90
|
+
shortName: any;
|
|
91
|
+
companyName: string;
|
|
92
|
+
projectName: string;
|
|
93
|
+
})[];
|
|
94
|
+
export function querystringToObject(queryString: any): {
|
|
95
|
+
[k: string]: string;
|
|
96
|
+
};
|
|
97
|
+
export function arrayIncludesAll(_values: any, comparison: any): boolean;
|
|
98
|
+
export function arraysMatch(array1: any, array2: any): boolean;
|
|
99
|
+
export function appendQuery(_basePath: any, queryString: any): string;
|
|
100
|
+
export function getGUID(): any;
|
|
101
|
+
export function getInteger(): any;
|
|
102
|
+
//# sourceMappingURL=display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../src/shared/display.js"],"names":[],"mappings":"AAKO;;;;;EAmCN;AAEM,2DAGN;AAEM,4DAeN;AAEM,gEAmBN;AAEM,mDAEN;AAEM,6CAGN;AAEM,2CAGN;AAEM,uDAGN;AAEM,+DAwBN;AAEM,0CAON;AAEM,sDAeN;AAEM,kDAEN;AAGM,sDAGN;AAEM,uDAGN;AAEM,uDAGN;AAEM,wDAGN;AAEM,mDAIN;AAEM,wDAIN;AAGM,mDAEN;AAEM,uDAEN;AAGM,4DAEN;AAEM;;;WAQN;AAEM,kDAGN;AAEM,uDAEN;AAEM,8EAGN;AAEM,iFAGN;AAEM,qFAEN;AAEM,+CAEN;AAGM,kDAEN;AAEM,qDAEN;AAEM,2CAIN;AAEM,6DAEN;AAOM,0FAqBN;AAMM,6DAGN;AAEM,0DAEN;AAEM,yDAGN;AAEM,sDAEN;AAOM,0EAEN;AAEM,kEAUN;AAEM,6EAEN;AAEM,8EAKN;AAEM,yCAEN;AAEM,0EAEN;AAEM,sEAIN;AAgBM,gEAQN;AAEM,2CAEN;AAEM,sEAEN;AAEM,4CAEN;AAEM,uEAEN;AAEM,+CAEN;AAEM,sEAIN;AAEM,6CAEN;AAEM,gDAGN;AAEM,+CASN;AAEM,gEA6DN;AAEM,wDAEN;AAEM,iEAEN;AAGM,yDAEN;AAEM,gEAEN;AAEM,wDAEN;AAEM,yDAEN;AAEM,kEAQN;AAEM,yEAON;AAEM,+CAWN;AAEM,kDAUN;AAEM,oEAON;AAEM,6DAKN;AAEM,wDAGN;AAGM,wEASN;AAEM,+DAcN;AAEM;;;;;EAWN;AAEM;;;;;;;;KAkBN;AAMM;;EAON;AAEM,yEAKN;AAEM,+DAEN;AAEM,sEAMN;AAIM,+BAEN;AAEM,kCAEN"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class ShopifyAuthenticationError extends Error {
|
|
2
|
+
constructor(message: any, data: any);
|
|
3
|
+
data: any;
|
|
4
|
+
}
|
|
5
|
+
export class ShopifySessionAuthenticationError extends ShopifyAuthenticationError {
|
|
6
|
+
}
|
|
7
|
+
export class ShopifySessionInvalidError extends ShopifySessionAuthenticationError {
|
|
8
|
+
}
|
|
9
|
+
export class ShopifySessionMissingError extends ShopifySessionAuthenticationError {
|
|
10
|
+
}
|
|
11
|
+
export namespace ERROR_CODES {
|
|
12
|
+
const CALLBACK: string;
|
|
13
|
+
const QUERY: string;
|
|
14
|
+
const BILLING: string;
|
|
15
|
+
const OAUTH: string;
|
|
16
|
+
const MISSING_SHOP: string;
|
|
17
|
+
const INVALID_CALLBACK: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/shared/errors.js"],"names":[],"mappings":"AAAA;IACE,qCAKC;IAHC,UAAgB;CAInB;AAED;CAMC;AAED;CAMC;AAED;CAMC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export namespace FRAGMENTS {
|
|
2
|
+
const APP_INSTALLATION: string;
|
|
3
|
+
const APP_SUBSCRIPTION: string;
|
|
4
|
+
const APP_PURCHASE: string;
|
|
5
|
+
const APP_METAFIELD: string;
|
|
6
|
+
}
|
|
7
|
+
export namespace TRANSFORM {
|
|
8
|
+
export { APP_QUERY_TRANSFORM as APP_QUERY };
|
|
9
|
+
export { APP_METAFIELDS_TRANSFORM as APP_METAFIELDS };
|
|
10
|
+
}
|
|
11
|
+
export namespace APP_QUERY {
|
|
12
|
+
export { INSTALLATION_BASIC };
|
|
13
|
+
export { INSTALLATION };
|
|
14
|
+
}
|
|
15
|
+
declare function APP_QUERY_TRANSFORM(data: any): {
|
|
16
|
+
appMetafields: any;
|
|
17
|
+
appInfo: any;
|
|
18
|
+
appInstallation: any;
|
|
19
|
+
};
|
|
20
|
+
declare function APP_METAFIELDS_TRANSFORM(metafields: any): any;
|
|
21
|
+
declare const INSTALLATION_BASIC: string;
|
|
22
|
+
declare const INSTALLATION: string;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/shared/graph.js"],"names":[],"mappings":";;;;;;;;;;;;;;AAgGA;;;;EAkDC;AAlFD,gEA8BC;AA5DD,yCAMC;AAED,mCAmBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './datetime';
|
|
3
|
+
export * from './display';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export * from './graph';
|
|
6
|
+
export * from './match';
|
|
7
|
+
export * from './request';
|
|
8
|
+
export * from './shopify';
|
|
9
|
+
export * from './subtlecrypto';
|
|
10
|
+
export * from './verification';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export function safeHostname(nameable: any): any;
|
|
2
|
+
export function isMatch(value: any, pattern: any): boolean;
|
|
3
|
+
export function matchArray(value: any, patterns: any): boolean;
|
|
4
|
+
export function matchObject(value: any, patterns: any): any;
|
|
5
|
+
export function matchHostname(nameable: any, patterns: any): any;
|
|
6
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../src/shared/match.js"],"names":[],"mappings":"AAIO,iDAQN;AAEM,2DAIN;AAEM,+DAYN;AAEM,4DAYN;AAEM,iEAKN"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export const HEADER_CONTENT_TYPE: "Content-Type";
|
|
2
|
+
export namespace CONTENT_TYPES {
|
|
3
|
+
const APPLICATION_JSON: string;
|
|
4
|
+
}
|
|
5
|
+
export function getRequestMethod(body: any, _method: any): string;
|
|
6
|
+
export function prepareRequestOptions({ method: _method, body: _body, headers: _header, ...requestOptions }?: {
|
|
7
|
+
method: any;
|
|
8
|
+
body: any;
|
|
9
|
+
headers: any;
|
|
10
|
+
}): any;
|
|
11
|
+
export function normalizeURIParts(uri: any): {
|
|
12
|
+
pathname: string;
|
|
13
|
+
search: string;
|
|
14
|
+
origin?: string | undefined;
|
|
15
|
+
} | undefined;
|
|
16
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../src/shared/request.js"],"names":[],"mappings":"AAWA,iDAAiD;;;;AAK1C,kEAIN;AAEM;;;;QAmBN;AAgBM;;;;cAeN"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const decodeJWT: typeof jwt_decode;
|
|
2
|
+
export function getSanitizedShopData(shop: any, customDomains: any): {
|
|
3
|
+
shop: string;
|
|
4
|
+
store_name: string;
|
|
5
|
+
};
|
|
6
|
+
export function sanitizeShop(shop: any, { throwOnInvalid, customDomains }?: {
|
|
7
|
+
throwOnInvalid: any;
|
|
8
|
+
customDomains: any;
|
|
9
|
+
}): string;
|
|
10
|
+
export function ensureShop(store: any, { throwOnInvalid, ...params }?: {
|
|
11
|
+
throwOnInvalid: any;
|
|
12
|
+
}): string | undefined;
|
|
13
|
+
export function decodeShopData(token: any): {
|
|
14
|
+
decoded?: undefined;
|
|
15
|
+
token?: undefined;
|
|
16
|
+
dest?: undefined;
|
|
17
|
+
sid?: undefined;
|
|
18
|
+
shop?: undefined;
|
|
19
|
+
host?: undefined;
|
|
20
|
+
store_name?: undefined;
|
|
21
|
+
} | {
|
|
22
|
+
decoded: unknown;
|
|
23
|
+
token: any;
|
|
24
|
+
dest: any;
|
|
25
|
+
sid: any;
|
|
26
|
+
shop: string;
|
|
27
|
+
host: string | undefined;
|
|
28
|
+
store_name: string;
|
|
29
|
+
};
|
|
30
|
+
import jwt_decode from "jwt-decode";
|
|
31
|
+
//# sourceMappingURL=shopify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shopify.d.ts","sourceRoot":"","sources":["../../src/shared/shopify.js"],"names":[],"mappings":"AAWA,0CAAmC;AAI5B;;;EAcN;AAGM;;;WAQN;AAGM;;uBAYN;AAEM;;;;;;;;;;;;;;;;EAiCN"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export namespace subtle {
|
|
2
|
+
export { generateKeyPair };
|
|
3
|
+
export { generateHMAC };
|
|
4
|
+
export { verifyHMAC };
|
|
5
|
+
export { getStorableKey };
|
|
6
|
+
export { getStorableKeyPair };
|
|
7
|
+
export { restoreStorableKeyPair };
|
|
8
|
+
export { deriveSharedKey };
|
|
9
|
+
export { deriveHMACKey };
|
|
10
|
+
export { getVerificationKeys };
|
|
11
|
+
export { encryptMessage };
|
|
12
|
+
export { decryptMessage };
|
|
13
|
+
}
|
|
14
|
+
declare function generateKeyPair(): Promise<CryptoKeyPair>;
|
|
15
|
+
declare function generateHMAC(message: any, derivedKey: any): Promise<string | undefined>;
|
|
16
|
+
declare function verifyHMAC(message: any, derivedKey: any, verifiableHMAC: any): Promise<boolean>;
|
|
17
|
+
declare function getStorableKey(key: any): Promise<string>;
|
|
18
|
+
declare function getStorableKeyPair(keyPair: any): Promise<{}>;
|
|
19
|
+
declare function restoreStorableKeyPair(keyPair: any): Promise<{}>;
|
|
20
|
+
declare function deriveSharedKey({ publicKey, privateKey }: {
|
|
21
|
+
publicKey: any;
|
|
22
|
+
privateKey: any;
|
|
23
|
+
}): Promise<CryptoKey | undefined>;
|
|
24
|
+
declare function deriveHMACKey({ publicKey, privateKey }: {
|
|
25
|
+
publicKey: any;
|
|
26
|
+
privateKey: any;
|
|
27
|
+
}): Promise<CryptoKey | undefined>;
|
|
28
|
+
declare function getVerificationKeys({ publicKey, privateKey }: {
|
|
29
|
+
publicKey: any;
|
|
30
|
+
privateKey: any;
|
|
31
|
+
}): Promise<{
|
|
32
|
+
derivedSecretKey?: undefined;
|
|
33
|
+
derivedHMACKey?: undefined;
|
|
34
|
+
} | {
|
|
35
|
+
derivedSecretKey: CryptoKey | undefined;
|
|
36
|
+
derivedHMACKey: CryptoKey | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
declare function encryptMessage(decryptedMessage: any, derivedKey: any): Promise<number[] | undefined>;
|
|
39
|
+
declare function decryptMessage(encryptedMessage: any, derivedKey: any): Promise<any>;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=subtlecrypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subtlecrypto.d.ts","sourceRoot":"","sources":["../../src/shared/subtlecrypto.js"],"names":[],"mappings":";;;;;;;;;;;;;AA6FA,2DAYC;AA0CD,0FAiBC;AAED,kGAIC;AAED,2DAKC;AAsBD,+DAUC;AAED,mEAUC;AAED;;;mCAoBC;AAED;;;mCAqBC;AAED;;;;;;;;;GAaC;AAED,uGAuBC;AAED,sFAuBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/shared/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function getKeysData(publicKey: any): Promise<{
|
|
2
|
+
publicKey: any;
|
|
3
|
+
ephemeral: {};
|
|
4
|
+
verification: {
|
|
5
|
+
derivedSecretKey?: undefined;
|
|
6
|
+
derivedHMACKey?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
derivedSecretKey: CryptoKey | undefined;
|
|
9
|
+
derivedHMACKey: CryptoKey | undefined;
|
|
10
|
+
};
|
|
11
|
+
}>;
|
|
12
|
+
export function prepareVerificationRequest({ keysData: _keysData, disableRecryption: _disableRecryption }?: {
|
|
13
|
+
keysData: any;
|
|
14
|
+
disableRecryption: any;
|
|
15
|
+
}): (requestPath: any, { method: rawMethod, body: rawBody, headers: rawHeaders, ...requestOptions }?: {
|
|
16
|
+
method: any;
|
|
17
|
+
body: any;
|
|
18
|
+
headers: any;
|
|
19
|
+
}) => Promise<any[] | undefined>;
|
|
20
|
+
export function processVerificationResponse({ keysData, disableRecryption: _disableRecryption }?: {
|
|
21
|
+
keysData: any;
|
|
22
|
+
disableRecryption: any;
|
|
23
|
+
}): (encryptedResponse: any, _derivedSecretKey: any) => Promise<any>;
|
|
24
|
+
//# sourceMappingURL=verification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification.d.ts","sourceRoot":"","sources":["../../src/shared/verification.js"],"names":[],"mappings":"AAMO;;;;;;;;;;GAeN;AAGM;;;;;;;iCAiEN;AAEM;;;qEAYN"}
|