@agnostack/next-shopify 1.5.4 → 1.5.5-alpha.1
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 +7 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +37 -1
- package/dist/utils/constants.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.5.5-alpha.1](https://github.com/agnostack/next-shopify/compare/v1.5.4...v1.5.5-alpha.1) (2022-12-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* added new query ([576a4d3](https://github.com/agnostack/next-shopify/commit/576a4d30d769902eaaa75b611e2312926f4a8858))
|
|
7
|
+
|
|
1
8
|
## [1.5.4](https://github.com/agnostack/next-shopify/compare/v1.5.3...v1.5.4) (2022-12-13)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -14,6 +14,7 @@ export namespace BILLING_INTERVALS {
|
|
|
14
14
|
const ANNUAL: string;
|
|
15
15
|
}
|
|
16
16
|
export const RECURRING_INTERVALS: string[];
|
|
17
|
+
export const SHOP_DATA_QUERY: "\n {\n shop {\n url\n name\n myshopifyDomain\n checkoutApiSupported\n taxesIncluded\n taxShipping\n orderNumberFormatPrefix\n orderNumberFormatSuffix\n orderTags (first: 100) {\n edges {\n node\n }\n }\n productVendors (first: 100) {\n edges {\n node\n }\n }\n customerTags (first: 100) {\n edges {\n node\n }\n }\n features {\n giftCards\n }\n plan {\n shopifyPlus\n partnerDevelopment\n }\n }\n }\n";
|
|
17
18
|
export const SHOP_QUERY: "\n {\n shop {\n name\n }\n }\n";
|
|
18
19
|
export const RECURRING_PURCHASES_QUERY: "\n query appSubscription {\n currentAppInstallation {\n activeSubscriptions {\n name, test\n }\n }\n }\n";
|
|
19
20
|
export const ONE_TIME_PURCHASES_QUERY: "\n query appPurchases($endCursor: String) {\n currentAppInstallation {\n oneTimePurchases(first: 250, sortKey: CREATED_AT, after: $endCursor) {\n edges {\n node {\n name, test, status\n }\n }\n pageInfo {\n hasNextPage, endCursor\n }\n }\n }\n }\n";
|
package/dist/utils/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ONE_TIME_PURCHASE_MUTATION = exports.RECURRING_PURCHASE_MUTATION = exports.ONE_TIME_PURCHASES_QUERY = exports.RECURRING_PURCHASES_QUERY = exports.SHOP_QUERY = exports.RECURRING_INTERVALS = exports.BILLING_INTERVALS = exports.API_ROUTE_NAMES = exports.PAGE_ROUTE_NAMES = exports.COLLECTION_ROOT = void 0;
|
|
3
|
+
exports.ONE_TIME_PURCHASE_MUTATION = exports.RECURRING_PURCHASE_MUTATION = exports.ONE_TIME_PURCHASES_QUERY = exports.RECURRING_PURCHASES_QUERY = exports.SHOP_QUERY = exports.SHOP_DATA_QUERY = exports.RECURRING_INTERVALS = exports.BILLING_INTERVALS = exports.API_ROUTE_NAMES = exports.PAGE_ROUTE_NAMES = exports.COLLECTION_ROOT = void 0;
|
|
4
4
|
exports.COLLECTION_ROOT = 'oauth-data';
|
|
5
5
|
exports.PAGE_ROUTE_NAMES = {
|
|
6
6
|
EXIT: 'pageRouteExit',
|
|
@@ -20,6 +20,42 @@ exports.RECURRING_INTERVALS = [
|
|
|
20
20
|
exports.BILLING_INTERVALS.EVERY_30_DAYS,
|
|
21
21
|
exports.BILLING_INTERVALS.ANNUAL
|
|
22
22
|
];
|
|
23
|
+
exports.SHOP_DATA_QUERY = `
|
|
24
|
+
{
|
|
25
|
+
shop {
|
|
26
|
+
url
|
|
27
|
+
name
|
|
28
|
+
myshopifyDomain
|
|
29
|
+
checkoutApiSupported
|
|
30
|
+
taxesIncluded
|
|
31
|
+
taxShipping
|
|
32
|
+
orderNumberFormatPrefix
|
|
33
|
+
orderNumberFormatSuffix
|
|
34
|
+
orderTags (first: 100) {
|
|
35
|
+
edges {
|
|
36
|
+
node
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
productVendors (first: 100) {
|
|
40
|
+
edges {
|
|
41
|
+
node
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
customerTags (first: 100) {
|
|
45
|
+
edges {
|
|
46
|
+
node
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
features {
|
|
50
|
+
giftCards
|
|
51
|
+
}
|
|
52
|
+
plan {
|
|
53
|
+
shopifyPlus
|
|
54
|
+
partnerDevelopment
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
23
59
|
exports.SHOP_QUERY = `
|
|
24
60
|
{
|
|
25
61
|
shop {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.js"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,YAAY,CAAA;AAE9B,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,gBAAgB;CACxB,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,sBAAsB;IACrC,eAAe,EAAE,wBAAwB;CAC1C,CAAA;AAEY,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;CACjB,CAAA;AAEY,QAAA,mBAAmB,GAAG;IACjC,yBAAiB,CAAC,aAAa;IAC/B,yBAAiB,CAAC,MAAM;CACzB,CAAA;AAEY,QAAA,UAAU,GAAG;;;;;;CAMzB,CAAA;AAEY,QAAA,yBAAyB,GAAG;;;;;;;;CAQxC,CAAA;AAEY,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;;CAevC,CAAA;AAEY,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;CAoB1C,CAAA;AAEY,QAAA,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;CAoBzC,CAAA"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.js"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,YAAY,CAAA;AAE9B,QAAA,gBAAgB,GAAG;IAC9B,IAAI,EAAE,eAAe;IACrB,KAAK,EAAE,gBAAgB;CACxB,CAAA;AAEY,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,sBAAsB;IACrC,eAAe,EAAE,wBAAwB;CAC1C,CAAA;AAEY,QAAA,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,UAAU;IACpB,aAAa,EAAE,eAAe;IAC9B,MAAM,EAAE,QAAQ;CACjB,CAAA;AAEY,QAAA,mBAAmB,GAAG;IACjC,yBAAiB,CAAC,aAAa;IAC/B,yBAAiB,CAAC,MAAM;CACzB,CAAA;AAEY,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmC9B,CAAA;AAEY,QAAA,UAAU,GAAG;;;;;;CAMzB,CAAA;AAEY,QAAA,yBAAyB,GAAG;;;;;;;;CAQxC,CAAA;AAEY,QAAA,wBAAwB,GAAG;;;;;;;;;;;;;;;CAevC,CAAA;AAEY,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;;CAoB1C,CAAA;AAEY,QAAA,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;CAoBzC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnostack/next-shopify",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5-alpha.1",
|
|
4
4
|
"author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
|
|
5
5
|
"owner": "agnoStack",
|
|
6
6
|
"description": "Please contact agnoStack via info@agnostack.com for any questions",
|