@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,24 @@
|
|
|
1
|
+
export function ensureBilling(paymentConfig: any, { shopify, session, forceBilling }?: {
|
|
2
|
+
shopify: any;
|
|
3
|
+
session: any;
|
|
4
|
+
forceBilling: any;
|
|
5
|
+
}): Promise<any>;
|
|
6
|
+
export function generatePaymentConfig(paymentConfig: any, { SHOPIFY_RUN_MODE, appTitle: _appTitle, data: { appName, debugMode, environment, }, }: {
|
|
7
|
+
SHOPIFY_RUN_MODE: any;
|
|
8
|
+
appTitle: any;
|
|
9
|
+
data?: {
|
|
10
|
+
appName: any;
|
|
11
|
+
debugMode: any;
|
|
12
|
+
environment: any;
|
|
13
|
+
} | undefined;
|
|
14
|
+
}): {
|
|
15
|
+
required: any;
|
|
16
|
+
test: any;
|
|
17
|
+
name: string;
|
|
18
|
+
config: {
|
|
19
|
+
interval: any;
|
|
20
|
+
amount: any;
|
|
21
|
+
currencyCode: any;
|
|
22
|
+
};
|
|
23
|
+
} | undefined;
|
|
24
|
+
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/billing.js"],"names":[],"mappings":"AAaO;;;;iBAsCN;AAGM;;;;;;;;;;;;;;;;;cAoCN"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function generateHMAC(message: any, apiSecret: any, digest?: string): Buffer & string;
|
|
2
|
+
export function compareHashes(digestable: any, checkSumable: any, encoding?: string): boolean;
|
|
3
|
+
export class CryptoHandler {
|
|
4
|
+
static getInstance(config: any): any;
|
|
5
|
+
constructor(enforcer: any, config: any);
|
|
6
|
+
type: string;
|
|
7
|
+
config: any;
|
|
8
|
+
get isInitialized(): boolean;
|
|
9
|
+
initialize(): void;
|
|
10
|
+
cryptoConfig: {
|
|
11
|
+
publicKey: string;
|
|
12
|
+
privateKey: string;
|
|
13
|
+
} | undefined;
|
|
14
|
+
decrypt(encrypted: any): any;
|
|
15
|
+
encrypt(decrypted: any): string;
|
|
16
|
+
verifyPublicKey(encryptedPublicKey: any, sharedSecret: any): boolean;
|
|
17
|
+
[singleton]: CryptoHandler | undefined;
|
|
18
|
+
}
|
|
19
|
+
export function getNonce(length?: number): string;
|
|
20
|
+
declare const singleton: unique symbol;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=crypto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/crypto.js"],"names":[],"mappings":"AA2CO,6FAIN;AAEM,8FAgBN;AAkBD;IA8BE,qCAUC;IAvCD,wCAOC;IAFC,aAA2B;IAC3B,YAAoB;IAGtB,6BAEC;IAED,mBAcC;IAVG;;;kBAQC;IAgBL,6BAEC;IAED,gCAEC;IAED,qEAWC;IA7BG,uCAA8D;CA8BnE;AAGM,kDAON;AAxFD,uCAAqC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export class FirebaseSessionHandler {
|
|
2
|
+
static getInstance(firebaseConfig: any, { collection, configurationId }: {
|
|
3
|
+
collection: any;
|
|
4
|
+
configurationId: any;
|
|
5
|
+
}): any;
|
|
6
|
+
constructor(enforcer: any, { configurationId, collection }: {
|
|
7
|
+
configurationId: any;
|
|
8
|
+
collection?: string | undefined;
|
|
9
|
+
});
|
|
10
|
+
type: string;
|
|
11
|
+
collection: string;
|
|
12
|
+
configurationId: any;
|
|
13
|
+
get isInitialized(): boolean;
|
|
14
|
+
initializeFireStore(firebaseConfig: any): void;
|
|
15
|
+
firestore: any;
|
|
16
|
+
[singleton]: FirebaseSessionHandler | undefined;
|
|
17
|
+
}
|
|
18
|
+
export function storeCallback(instance: any, shopId: any, session: any): Promise<any>;
|
|
19
|
+
export function updateCallback(instance: any, shopId: any, session: any): Promise<any>;
|
|
20
|
+
export function loadCallback(instance: any, shopId: any, sessionId: any): Promise<any>;
|
|
21
|
+
export function deleteSessionsCallback(instance: any, shopId: any, sessionIds: any): Promise<any[]>;
|
|
22
|
+
export function findSessionIdsByShop(instance: any, shopId: any): Promise<any[]>;
|
|
23
|
+
declare const singleton: unique symbol;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=firebase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebase.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/firebase.js"],"names":[],"mappings":"AAYA;IA2BE;;;YAUC;IApCD;;;OAQC;IAHC,aAAoC;IACpC,mBAA4B;IAC5B,qBAAsC;IAGxC,6BAEC;IAED,+CAUC;IAFG,eAAoC;IAMpC,gDAAgG;CASrG;AAEM,sFA0BN;AAEM,uFA0BN;AAEM,uFAqBN;AAEM,oGAuBN;AAEM,iFAuBN;AA1KD,uCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/headers.js"],"names":[],"mappings":"AAeO;;;QAYN"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./billing";
|
|
2
|
+
export * from "./crypto";
|
|
3
|
+
export * from "./firebase";
|
|
4
|
+
export * from "./headers";
|
|
5
|
+
export * from "./session";
|
|
6
|
+
export * from "./shopify";
|
|
7
|
+
export * from "./shopify-api-js/oauth";
|
|
8
|
+
export * from "./token";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export function getShopifyHelpers(serverRuntimeConfig: any, config: any): Promise<{
|
|
2
|
+
getVerifiedClients: (() => undefined) | (({ req, res, apiVersion, isOnline: _isOnline }?: {
|
|
3
|
+
req: any;
|
|
4
|
+
res: any;
|
|
5
|
+
apiVersion: any;
|
|
6
|
+
isOnline: any;
|
|
7
|
+
}) => Promise<{
|
|
8
|
+
Graphql: import("@shopify/shopify-api/lib/clients/graphql/graphql_client").GraphqlClient;
|
|
9
|
+
Rest: import("@shopify/shopify-api/lib/clients/rest/rest_client").RestClient;
|
|
10
|
+
} | undefined>);
|
|
11
|
+
getAppUrl: (() => undefined) | ((_appPath: any) => Promise<string | undefined>);
|
|
12
|
+
encryptData?: ((value: any) => any) | undefined;
|
|
13
|
+
decryptData?: ((encrypted: any, { publicKey, sharedSecret }?: {
|
|
14
|
+
publicKey: any;
|
|
15
|
+
sharedSecret: any;
|
|
16
|
+
}) => any) | undefined;
|
|
17
|
+
loadAppData: (() => undefined) | (({ appId: _appId }?: {
|
|
18
|
+
appId: any;
|
|
19
|
+
}) => Promise<{
|
|
20
|
+
appMetafields: any;
|
|
21
|
+
appInfo: any;
|
|
22
|
+
appInstallation: any;
|
|
23
|
+
}>);
|
|
24
|
+
loadData: () => {};
|
|
25
|
+
loadSecureData: () => {};
|
|
26
|
+
loadSession: (() => {}) | ((params: any) => Promise<any>);
|
|
27
|
+
storeSession: (() => {}) | ((session: any) => Promise<any>);
|
|
28
|
+
ensureBilling: (() => undefined) | ((session: any, reAuth: any) => Promise<any>);
|
|
29
|
+
updateSession: (() => {}) | ((sessionId: any, data: any) => Promise<any>);
|
|
30
|
+
deleteSessions: (() => undefined) | ((sessionIds: any) => Promise<any[]>);
|
|
31
|
+
findSessionIds: (() => never[]) | ((_shop: any) => Promise<any[]>);
|
|
32
|
+
shopify: import("@shopify/shopify-api").Shopify<import("@shopify/shopify-api").ShopifyRestResources> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export function prepareHeaders(serverRuntimeConfig: any): ({ generateReplacements, appData, shop, appId, headers: _headers }?: {
|
|
35
|
+
generateReplacements: any;
|
|
36
|
+
appData: any;
|
|
37
|
+
shop: any;
|
|
38
|
+
appId: any;
|
|
39
|
+
headers: any;
|
|
40
|
+
}) => Promise<any>;
|
|
41
|
+
//# sourceMappingURL=session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/session.js"],"names":[],"mappings":"AAuCO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkTN;AAkCM;;;;;;mBAoBN"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function beginAuth({ config, isOnline, callbackPath, shop: shopProp, state: stateProp, ...adapterArgs }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
config: any;
|
|
4
|
+
isOnline: any;
|
|
5
|
+
callbackPath: any;
|
|
6
|
+
shop: any;
|
|
7
|
+
state: any;
|
|
8
|
+
}): Promise<any>;
|
|
9
|
+
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/shopify-api-js/oauth.js"],"names":[],"mappings":"AAiBO;;;;;;;iBAuDN"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export function getSecurityHeader(shop: any, { isEmbeddedApp }?: {
|
|
2
|
+
isEmbeddedApp: any;
|
|
3
|
+
}): string;
|
|
4
|
+
export function allowLocalBypass({ SHOPIFY_RUN_MODE, APP_CONFIG }?: {
|
|
5
|
+
SHOPIFY_RUN_MODE: any;
|
|
6
|
+
APP_CONFIG: any;
|
|
7
|
+
}): boolean;
|
|
8
|
+
export function getInitializedShopify(serverRuntimeConfig: any): import("@shopify/shopify-api").Shopify<import("@shopify/shopify-api").ShopifyRestResources> | undefined;
|
|
9
|
+
export function prepareWebhookHandlers(serverRuntimeConfig: any, params: any): {};
|
|
10
|
+
export function getCallback(data: any, { reAuth, isOnline }: {
|
|
11
|
+
reAuth: any;
|
|
12
|
+
isOnline: any;
|
|
13
|
+
}): any;
|
|
14
|
+
export function getAuthErrorResponse(serverRuntimeConfig: any, { error, shop }: {
|
|
15
|
+
error: any;
|
|
16
|
+
shop: any;
|
|
17
|
+
}): {
|
|
18
|
+
statusCode: number;
|
|
19
|
+
message: any;
|
|
20
|
+
headers: {
|
|
21
|
+
'X-Shopify-API-Request-Failure-Reauthorize': string;
|
|
22
|
+
'X-Shopify-API-Request-Failure-Reauthorize-Url': any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export const SHOP_QUERY: "\n {\n shop {\n name\n }\n }\n";
|
|
26
|
+
//# sourceMappingURL=shopify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shopify.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/shopify.js"],"names":[],"mappings":"AAmBO;;WAIN;AAGM;;;YAQN;AAEM,yKAYN;AAEM,kFA8DN;AAEM;;;QAYN;AAEM;;;;;;;;;;EAiBN;AAED,uEAMC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function getVerifiedSessionData(serverRuntimeConfig: any, { signingSecret: _signingSecret }?: {
|
|
2
|
+
signingSecret: any;
|
|
3
|
+
}): (sessionToken: any, { shop, host }?: {
|
|
4
|
+
shop: any;
|
|
5
|
+
host: any;
|
|
6
|
+
}) => Promise<{
|
|
7
|
+
dest?: undefined;
|
|
8
|
+
sid?: undefined;
|
|
9
|
+
shop?: undefined;
|
|
10
|
+
host?: undefined;
|
|
11
|
+
store_name?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
dest: any;
|
|
14
|
+
sid: any;
|
|
15
|
+
shop: string;
|
|
16
|
+
host: string | undefined;
|
|
17
|
+
store_name: string;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/token.js"],"names":[],"mappings":"AAWO;;;;;;;;;;;;;;;;;GAkCN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withShopify.d.ts","sourceRoot":"","sources":["../../src/lib/withShopify.js"],"names":[],"mappings":"AA0BO;;;;iBAmZN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function useVerification({ publicKey, disableRecryption }?: {
|
|
2
|
+
publicKey: any;
|
|
3
|
+
disableRecryption: any;
|
|
4
|
+
}): {
|
|
5
|
+
prepareVerification: (requestPath: any, requestOptions: any) => Promise<any[] | undefined>;
|
|
6
|
+
processResponse: (encryptedResponse: any, derivedSecretKey: any) => Promise<any>;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useVerification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVerification.d.ts","sourceRoot":"","sources":["../../../src/react/hooks/useVerification.js"],"names":[],"mappings":"AAQO;;;;;;EA8BN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/react/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/runtime/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
export const COLLECTION_ROOT: "oauth-data";
|
|
2
|
+
export namespace PAGE_ROUTE_NAMES {
|
|
3
|
+
const EXIT: string;
|
|
4
|
+
const ERROR: string;
|
|
5
|
+
const SUCCESS: string;
|
|
6
|
+
}
|
|
7
|
+
export namespace API_WEBHOOK_TOPICS {
|
|
8
|
+
const APP_UNINSTALLED: string;
|
|
9
|
+
const APP_PURCHASES_ONE_TIME_UPDATE: string;
|
|
10
|
+
const APP_SUBSCRIPTIONS_APPROACHING_CAPPED_AMOUNT: string;
|
|
11
|
+
const APP_SUBSCRIPTIONS_UPDATE: string;
|
|
12
|
+
const ATTRIBUTED_SESSIONS_FIRST: string;
|
|
13
|
+
const ATTRIBUTED_SESSIONS_LAST: string;
|
|
14
|
+
const AUDIT_EVENTS_ADMIN_API_ACTIVITY: string;
|
|
15
|
+
const BULK_OPERATIONS_FINISH: string;
|
|
16
|
+
const CARTS_CREATE: string;
|
|
17
|
+
const CARTS_UPDATE: string;
|
|
18
|
+
const CHANNELS_DELETE: string;
|
|
19
|
+
const CHECKOUTS_CREATE: string;
|
|
20
|
+
const CHECKOUTS_DELETE: string;
|
|
21
|
+
const CHECKOUTS_UPDATE: string;
|
|
22
|
+
const COLLECTIONS_CREATE: string;
|
|
23
|
+
const COLLECTIONS_DELETE: string;
|
|
24
|
+
const COLLECTIONS_UPDATE: string;
|
|
25
|
+
const COLLECTION_LISTINGS_ADD: string;
|
|
26
|
+
const COLLECTION_LISTINGS_REMOVE: string;
|
|
27
|
+
const COLLECTION_LISTINGS_UPDATE: string;
|
|
28
|
+
const COLLECTION_PUBLICATIONS_CREATE: string;
|
|
29
|
+
const COLLECTION_PUBLICATIONS_DELETE: string;
|
|
30
|
+
const COLLECTION_PUBLICATIONS_UPDATE: string;
|
|
31
|
+
const COMPANIES_CREATE: string;
|
|
32
|
+
const COMPANIES_DELETE: string;
|
|
33
|
+
const COMPANIES_UPDATE: string;
|
|
34
|
+
const COMPANY_CONTACTS_CREATE: string;
|
|
35
|
+
const COMPANY_CONTACTS_DELETE: string;
|
|
36
|
+
const COMPANY_CONTACTS_UPDATE: string;
|
|
37
|
+
const COMPANY_LOCATIONS_CREATE: string;
|
|
38
|
+
const COMPANY_LOCATIONS_DELETE: string;
|
|
39
|
+
const COMPANY_LOCATIONS_UPDATE: string;
|
|
40
|
+
const CUSTOMERS_CREATE: string;
|
|
41
|
+
const CUSTOMERS_DELETE: string;
|
|
42
|
+
const CUSTOMERS_DISABLE: string;
|
|
43
|
+
const CUSTOMERS_ENABLE: string;
|
|
44
|
+
const CUSTOMERS_MARKETING_CONSENT_UPDATE: string;
|
|
45
|
+
const CUSTOMERS_MERGE: string;
|
|
46
|
+
const CUSTOMERS_UPDATE: string;
|
|
47
|
+
const CUSTOMER_GROUPS_CREATE: string;
|
|
48
|
+
const CUSTOMER_GROUPS_DELETE: string;
|
|
49
|
+
const CUSTOMER_GROUPS_UPDATE: string;
|
|
50
|
+
const CUSTOMER_PAYMENT_METHODS_CREATE: string;
|
|
51
|
+
const CUSTOMER_PAYMENT_METHODS_REVOKE: string;
|
|
52
|
+
const CUSTOMER_PAYMENT_METHODS_UPDATE: string;
|
|
53
|
+
const DISPUTES_CREATE: string;
|
|
54
|
+
const DISPUTES_UPDATE: string;
|
|
55
|
+
const DOMAINS_CREATE: string;
|
|
56
|
+
const DOMAINS_DESTROY: string;
|
|
57
|
+
const DOMAINS_UPDATE: string;
|
|
58
|
+
const DRAFT_ORDERS_CREATE: string;
|
|
59
|
+
const DRAFT_ORDERS_DELETE: string;
|
|
60
|
+
const DRAFT_ORDERS_UPDATE: string;
|
|
61
|
+
const FULFILLMENTS_CREATE: string;
|
|
62
|
+
const FULFILLMENTS_UPDATE: string;
|
|
63
|
+
const FULFILLMENT_EVENTS_CREATE: string;
|
|
64
|
+
const FULFILLMENT_EVENTS_DELETE: string;
|
|
65
|
+
const FULFILLMENT_ORDERS_CANCELLATION_REQUEST_ACCEPTED: string;
|
|
66
|
+
const FULFILLMENT_ORDERS_CANCELLATION_REQUEST_REJECTED: string;
|
|
67
|
+
const FULFILLMENT_ORDERS_CANCELLATION_REQUEST_SUBMITTED: string;
|
|
68
|
+
const FULFILLMENT_ORDERS_CANCELLED: string;
|
|
69
|
+
const FULFILLMENT_ORDERS_FULFILLMENT_REQUEST_ACCEPTED: string;
|
|
70
|
+
const FULFILLMENT_ORDERS_FULFILLMENT_REQUEST_REJECTED: string;
|
|
71
|
+
const FULFILLMENT_ORDERS_FULFILLMENT_REQUEST_SUBMITTED: string;
|
|
72
|
+
const FULFILLMENT_ORDERS_FULFILLMENT_SERVICE_FAILED_TO_COMPLETE: string;
|
|
73
|
+
const FULFILLMENT_ORDERS_HOLD_RELEASED: string;
|
|
74
|
+
const FULFILLMENT_ORDERS_LINE_ITEMS_PREPARED_FOR_LOCAL_DELIVERY: string;
|
|
75
|
+
const FULFILLMENT_ORDERS_LINE_ITEMS_PREPARED_FOR_PICKUP: string;
|
|
76
|
+
const FULFILLMENT_ORDERS_MOVED: string;
|
|
77
|
+
const FULFILLMENT_ORDERS_ORDER_ROUTING_COMPLETE: string;
|
|
78
|
+
const FULFILLMENT_ORDERS_PLACED_ON_HOLD: string;
|
|
79
|
+
const FULFILLMENT_ORDERS_RESCHEDULED: string;
|
|
80
|
+
const FULFILLMENT_ORDERS_SCHEDULED_FULFILLMENT_ORDER_READY: string;
|
|
81
|
+
const INVENTORY_ITEMS_CREATE: string;
|
|
82
|
+
const INVENTORY_ITEMS_DELETE: string;
|
|
83
|
+
const INVENTORY_ITEMS_UPDATE: string;
|
|
84
|
+
const INVENTORY_LEVELS_CONNECT: string;
|
|
85
|
+
const INVENTORY_LEVELS_DISCONNECT: string;
|
|
86
|
+
const INVENTORY_LEVELS_UPDATE: string;
|
|
87
|
+
const LOCALES_CREATE: string;
|
|
88
|
+
const LOCALES_UPDATE: string;
|
|
89
|
+
const LOCATIONS_ACTIVATE: string;
|
|
90
|
+
const LOCATIONS_CREATE: string;
|
|
91
|
+
const LOCATIONS_DEACTIVATE: string;
|
|
92
|
+
const LOCATIONS_DELETE: string;
|
|
93
|
+
const LOCATIONS_UPDATE: string;
|
|
94
|
+
const MARKETS_CREATE: string;
|
|
95
|
+
const MARKETS_DELETE: string;
|
|
96
|
+
const MARKETS_UPDATE: string;
|
|
97
|
+
const ORDERS_CANCELLED: string;
|
|
98
|
+
const ORDERS_CREATE: string;
|
|
99
|
+
const ORDERS_DELETE: string;
|
|
100
|
+
const ORDERS_EDITED: string;
|
|
101
|
+
const ORDERS_FULFILLED: string;
|
|
102
|
+
const ORDERS_PAID: string;
|
|
103
|
+
const ORDERS_PARTIALLY_FULFILLED: string;
|
|
104
|
+
const ORDERS_UPDATED: string;
|
|
105
|
+
const ORDER_TRANSACTIONS_CREATE: string;
|
|
106
|
+
const PAYMENT_SCHEDULES_DUE: string;
|
|
107
|
+
const PAYMENT_TERMS_CREATE: string;
|
|
108
|
+
const PAYMENT_TERMS_DELETE: string;
|
|
109
|
+
const PAYMENT_TERMS_UPDATE: string;
|
|
110
|
+
const PRODUCTS_CREATE: string;
|
|
111
|
+
const PRODUCTS_DELETE: string;
|
|
112
|
+
const PRODUCTS_UPDATE: string;
|
|
113
|
+
const PRODUCT_LISTINGS_ADD: string;
|
|
114
|
+
const PRODUCT_LISTINGS_REMOVE: string;
|
|
115
|
+
const PRODUCT_LISTINGS_UPDATE: string;
|
|
116
|
+
const PRODUCT_PUBLICATIONS_CREATE: string;
|
|
117
|
+
const PRODUCT_PUBLICATIONS_DELETE: string;
|
|
118
|
+
const PRODUCT_PUBLICATIONS_UPDATE: string;
|
|
119
|
+
const PROFILES_CREATE: string;
|
|
120
|
+
const PROFILES_DELETE: string;
|
|
121
|
+
const PROFILES_UPDATE: string;
|
|
122
|
+
const REFUNDS_CREATE: string;
|
|
123
|
+
const RETURNS_APPROVE: string;
|
|
124
|
+
const RETURNS_CANCEL: string;
|
|
125
|
+
const RETURNS_CLOSE: string;
|
|
126
|
+
const RETURNS_DECLINE: string;
|
|
127
|
+
const RETURNS_REOPEN: string;
|
|
128
|
+
const RETURNS_REQUEST: string;
|
|
129
|
+
const REVERSE_DELIVERIES_ATTACH_DELIVERABLE: string;
|
|
130
|
+
const REVERSE_FULFILLMENT_ORDERS_DISPOSE: string;
|
|
131
|
+
const SCHEDULED_PRODUCT_LISTINGS_ADD: string;
|
|
132
|
+
const SCHEDULED_PRODUCT_LISTINGS_REMOVE: string;
|
|
133
|
+
const SCHEDULED_PRODUCT_LISTINGS_UPDATE: string;
|
|
134
|
+
const SEGMENTS_CREATE: string;
|
|
135
|
+
const SEGMENTS_DELETE: string;
|
|
136
|
+
const SEGMENTS_UPDATE: string;
|
|
137
|
+
const SELLING_PLAN_GROUPS_CREATE: string;
|
|
138
|
+
const SELLING_PLAN_GROUPS_DELETE: string;
|
|
139
|
+
const SELLING_PLAN_GROUPS_UPDATE: string;
|
|
140
|
+
const SHIPPING_ADDRESSES_CREATE: string;
|
|
141
|
+
const SHIPPING_ADDRESSES_UPDATE: string;
|
|
142
|
+
const SHOP_UPDATE: string;
|
|
143
|
+
const SUBSCRIPTION_BILLING_ATTEMPTS_CHALLENGED: string;
|
|
144
|
+
const SUBSCRIPTION_BILLING_ATTEMPTS_FAILURE: string;
|
|
145
|
+
const SUBSCRIPTION_BILLING_ATTEMPTS_SUCCESS: string;
|
|
146
|
+
const SUBSCRIPTION_BILLING_CYCLE_EDITS_CREATE: string;
|
|
147
|
+
const SUBSCRIPTION_BILLING_CYCLE_EDITS_DELETE: string;
|
|
148
|
+
const SUBSCRIPTION_BILLING_CYCLE_EDITS_UPDATE: string;
|
|
149
|
+
const SUBSCRIPTION_CONTRACTS_CREATE: string;
|
|
150
|
+
const SUBSCRIPTION_CONTRACTS_UPDATE: string;
|
|
151
|
+
const TAX_SERVICES_CREATE: string;
|
|
152
|
+
const TAX_SERVICES_UPDATE: string;
|
|
153
|
+
const TENDER_TRANSACTIONS_CREATE: string;
|
|
154
|
+
const THEMES_CREATE: string;
|
|
155
|
+
const THEMES_DELETE: string;
|
|
156
|
+
const THEMES_PUBLISH: string;
|
|
157
|
+
const THEMES_UPDATE: string;
|
|
158
|
+
const VARIANTS_IN_STOCK: string;
|
|
159
|
+
const VARIANTS_OUT_OF_STOCK: string;
|
|
160
|
+
const CHECKOUTS_PAID: string;
|
|
161
|
+
const COMPANY_CONTACT_ROLES_ASSIGN: string;
|
|
162
|
+
const COMPANY_CONTACT_ROLES_REVOKE: string;
|
|
163
|
+
const CUSTOMERS_EMAIL_MARKETING_CONSENT_UPDATE: string;
|
|
164
|
+
const FINANCE_KYC_INFORMATION_UPDATE: string;
|
|
165
|
+
const FULFILLMENT_ORDERS_HOLD_FULFILLMENT: string;
|
|
166
|
+
const FULFILLMENT_ORDERS_READY_FOR_PICKUP: string;
|
|
167
|
+
const FULFILLMENT_ORDERS_READY_TO_FULFILL: string;
|
|
168
|
+
const INVENTORY_QUANTITIES_CHANGED: string;
|
|
169
|
+
const MARKETPLACE_PAYMENTS_CONFIGURATIONS_UPDATE: string;
|
|
170
|
+
const PRODUCT_FEEDS_CREATE: string;
|
|
171
|
+
const PRODUCT_FEEDS_FULL_SYNC: string;
|
|
172
|
+
const PRODUCT_FEEDS_INCREMENTAL_SYNC: string;
|
|
173
|
+
const PRODUCT_FEEDS_UPDATE: string;
|
|
174
|
+
const PUBLICATIONS_DELETE: string;
|
|
175
|
+
const PURCHASE_ORDERS_CREATE: string;
|
|
176
|
+
const PURCHASE_ORDERS_DELETE: string;
|
|
177
|
+
const PURCHASE_ORDERS_MARK_AS_ORDERED: string;
|
|
178
|
+
const PURCHASE_ORDERS_RECEIVE: string;
|
|
179
|
+
const PURCHASE_ORDERS_UPDATE: string;
|
|
180
|
+
const SUPPLIERS_CREATE: string;
|
|
181
|
+
const SUPPLIERS_DELETE: string;
|
|
182
|
+
const SUPPLIERS_UPDATE: string;
|
|
183
|
+
}
|
|
184
|
+
export function convertEventTopic(topic: any): any;
|
|
185
|
+
export const API_ROUTE_NAMES: {
|
|
186
|
+
[x: string]: string;
|
|
187
|
+
APP_INSTALLATION: string;
|
|
188
|
+
SESSION_TOKEN: string;
|
|
189
|
+
WEBHOOK_EVENT: string;
|
|
190
|
+
AUTH_ONLINE: string;
|
|
191
|
+
AUTH_OFFLINE: string;
|
|
192
|
+
AUTH_ONLINE_CALLBACK: string;
|
|
193
|
+
AUTH_OFFLINE_CALLBACK: string;
|
|
194
|
+
AUTH_ONLINE_CALLBACK_REAUTH: string;
|
|
195
|
+
AUTH_OFFLINE_CALLBACK_REAUTH: string;
|
|
196
|
+
};
|
|
197
|
+
export namespace BILLING_INTERVALS {
|
|
198
|
+
const ONE_TIME: string;
|
|
199
|
+
const MONTHLY: string;
|
|
200
|
+
const ANNUAL: string;
|
|
201
|
+
}
|
|
202
|
+
export namespace BILLING_EVENT_TYPES {
|
|
203
|
+
const ONE_TIME_1: string;
|
|
204
|
+
export { ONE_TIME_1 as ONE_TIME };
|
|
205
|
+
export const SUBSCRIPTION: string;
|
|
206
|
+
}
|
|
207
|
+
export namespace AUTH_TYPES {
|
|
208
|
+
const OFFLINE: string;
|
|
209
|
+
const ONLINE: string;
|
|
210
|
+
}
|
|
211
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/shared/constants.js"],"names":[],"mappings":"AAAA,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4LpC,mDAEN;AAED;;;;;;;;;;;EAaC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export const TIME_FORMAT_LONG: "HH:mm";
|
|
2
|
+
export const TIME_FORMAT_AMPM: "h:mm a";
|
|
3
|
+
export const DATE_FORMAT_MED: "M/d/yyyy";
|
|
4
|
+
export const DATE_FORMAT_LONG: "MM/dd/yyyy";
|
|
5
|
+
export const DATE_FORMAT_TRACKING: "MMddyyyy";
|
|
6
|
+
export const DATE_FORMAT_ORGANIZED: "yyyy-MM-dd";
|
|
7
|
+
export namespace CUSTOM_FORMATS {
|
|
8
|
+
const UTC: string;
|
|
9
|
+
const ISO: string;
|
|
10
|
+
const UNIX: string;
|
|
11
|
+
}
|
|
12
|
+
export namespace LOCALE_FORMATS {
|
|
13
|
+
export { DATE_MINI };
|
|
14
|
+
export { DATE_SHORT };
|
|
15
|
+
export { DATE_MED };
|
|
16
|
+
export { DATE_FULL };
|
|
17
|
+
export { DATE_HUGE };
|
|
18
|
+
export { DATETIME_MINI };
|
|
19
|
+
export { DATETIME_SHORT };
|
|
20
|
+
export { DATETIME_MED };
|
|
21
|
+
export { DATETIME_MED_WITH_SECONDS };
|
|
22
|
+
export { DATETIME_FULL_NO_ZONE };
|
|
23
|
+
export { DATETIME_HUGE_NO_ZONE };
|
|
24
|
+
export { TIME_SIMPLE };
|
|
25
|
+
}
|
|
26
|
+
export function getDaysInMonth(year: any, month: any): number;
|
|
27
|
+
export function setDateTimeLocale(locale: any): void;
|
|
28
|
+
export function setDateTimeZone(zone: any): void;
|
|
29
|
+
export function getDateTimeFormat({ locale, mappings }?: {
|
|
30
|
+
locale: any;
|
|
31
|
+
mappings?: {
|
|
32
|
+
day: string;
|
|
33
|
+
month: string;
|
|
34
|
+
year: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
}): any;
|
|
37
|
+
export function getDateTimeFromString({ format, value, ...options }?: {
|
|
38
|
+
format: any;
|
|
39
|
+
value: any;
|
|
40
|
+
}): any;
|
|
41
|
+
export function convertDateTime(value: any, { shouldThrow, shouldLog, ...options }?: {
|
|
42
|
+
shouldThrow?: boolean | undefined;
|
|
43
|
+
shouldLog?: any;
|
|
44
|
+
}): any;
|
|
45
|
+
export function convertDuration(value: any, { shouldThrow, ...options }?: {
|
|
46
|
+
shouldThrow?: boolean | undefined;
|
|
47
|
+
}): any;
|
|
48
|
+
export function getDuration(dt1: any, dt2: any): any;
|
|
49
|
+
export function getCurrentDateTime(): any;
|
|
50
|
+
export function getDaysBetween(dt1: any, dt2: any): number;
|
|
51
|
+
export function getWeeksBetween(dt1: any, dt2: any): number;
|
|
52
|
+
export function isSameHour(dt1: any, dt2: any): boolean;
|
|
53
|
+
export function isSameDay(dt1: any, dt2: any): boolean;
|
|
54
|
+
export function ensureDateTime(value: any, options: any): any;
|
|
55
|
+
export function formatTimestamps(timestamps: any, defaultValue: any): {};
|
|
56
|
+
export function formatRequiredTimestamps({ created_at, updated_at, ...timestamps }?: {
|
|
57
|
+
created_at: any;
|
|
58
|
+
updated_at: any;
|
|
59
|
+
}): {
|
|
60
|
+
created_at: string;
|
|
61
|
+
updated_at: string;
|
|
62
|
+
};
|
|
63
|
+
export function toJSDate(value: any, options: any): any;
|
|
64
|
+
export function toUnixInteger(value: any, options: any): any;
|
|
65
|
+
export function toUnixString(value: any, options: any): string;
|
|
66
|
+
export function toISOString(value: any, options: any): any;
|
|
67
|
+
export function toUTCString(value: any, options: any): any;
|
|
68
|
+
export function toFormatted({ format, value, zone, ...options }?: {
|
|
69
|
+
format: any;
|
|
70
|
+
value: any;
|
|
71
|
+
zone: any;
|
|
72
|
+
}): any;
|
|
73
|
+
export function convertFormatted({ value, to: { format: toFormat, ...toOptions }, from: { format: fromFormat, ...fromOptions }, }?: {
|
|
74
|
+
value: any;
|
|
75
|
+
to?: {
|
|
76
|
+
format: any;
|
|
77
|
+
} | undefined;
|
|
78
|
+
from?: {
|
|
79
|
+
format: any;
|
|
80
|
+
} | undefined;
|
|
81
|
+
}): any;
|
|
82
|
+
export function compareDate(date1: any, date2: any): number;
|
|
83
|
+
declare const DATE_MINI: any;
|
|
84
|
+
declare const DATE_SHORT: any;
|
|
85
|
+
declare const DATE_MED: any;
|
|
86
|
+
declare const DATE_FULL: any;
|
|
87
|
+
declare const DATE_HUGE: any;
|
|
88
|
+
declare const DATETIME_MINI: any;
|
|
89
|
+
declare const DATETIME_SHORT: any;
|
|
90
|
+
declare const DATETIME_MED: any;
|
|
91
|
+
declare const DATETIME_MED_WITH_SECONDS: any;
|
|
92
|
+
declare const DATETIME_FULL_NO_ZONE: any;
|
|
93
|
+
declare const DATETIME_HUGE_NO_ZONE: any;
|
|
94
|
+
declare const TIME_SIMPLE: any;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=datetime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../src/shared/datetime.js"],"names":[],"mappings":"AAcA,uCAAuC;AACvC,wCAAwC;AAExC,yCAAyC;AACzC,4CAA4C;AAC5C,8CAA8C;AAC9C,iDAAiD;;;;;;;;;;;;;;;;;;;;AAqE1C,8DAEN;AAEM,qDAIN;AAEM,iDAIN;AAEM;;;;;;;QAUN;AAEM;;;QA4BN;AAEM;;;QA4CN;AAEM;;QAwDN;AAEM,qDAEN;AAEM,0CAEN;AAMM,2DAEN;AAEM,4DAEN;AAOM,wDAEN;AAEM,uDAEN;AAEM,8DAEN;AAEM,yEAKN;AAEM;;;;;;EAON;AAEM,wDAEN;AAEM,6DAEN;AAGM,+DAEN;AAGM,2DAEN;AAGM,2DAEN;AAGM;;;;QAqCN;AAEM;;;;;;;;QAkBN;AAEM,4DAEN;AAlWD,6BAGC;;;;;AAED,iCAGC"}
|