@adtrackify/at-service-common 3.1.4 → 3.1.6
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/dist/cjs/clients/third-party/shopify/graphql-product-queries.d.ts +1 -0
- package/dist/cjs/clients/third-party/shopify/graphql-product-queries.js +109 -0
- package/dist/cjs/clients/third-party/shopify/graphql-product-queries.js.map +1 -0
- package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.d.ts +9 -0
- package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.js +97 -0
- package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.js.map +1 -0
- package/dist/cjs/clients/third-party/shopify-client.d.ts +0 -2
- package/dist/cjs/clients/third-party/shopify-client.js +0 -127
- package/dist/cjs/clients/third-party/shopify-client.js.map +1 -1
- package/dist/cjs/services/cache/index.d.ts +1 -0
- package/dist/cjs/services/cache/index.js +18 -0
- package/dist/cjs/services/cache/index.js.map +1 -0
- package/dist/cjs/services/cache/product-cache-service.d.ts +9 -0
- package/dist/cjs/services/cache/product-cache-service.js +32 -0
- package/dist/cjs/services/cache/product-cache-service.js.map +1 -0
- package/dist/cjs/services/db/shopify-products-cache-db-service.d.ts +0 -11
- package/dist/cjs/services/db/shopify-products-cache-db-service.js +0 -43
- package/dist/cjs/services/db/shopify-products-cache-db-service.js.map +1 -1
- package/dist/cjs/services/generic-cache-service.d.ts +8 -0
- package/dist/cjs/services/generic-cache-service.js +31 -0
- package/dist/cjs/services/generic-cache-service.js.map +1 -0
- package/dist/cjs/services/index.d.ts +3 -0
- package/dist/cjs/services/index.js +3 -0
- package/dist/cjs/services/index.js.map +1 -1
- package/dist/cjs/services/shopify/index.d.ts +3 -0
- package/dist/cjs/services/shopify/index.js +20 -0
- package/dist/cjs/services/shopify/index.js.map +1 -0
- package/dist/cjs/services/shopify/products/index.d.ts +1 -0
- package/dist/cjs/services/shopify/products/index.js +18 -0
- package/dist/cjs/services/shopify/products/index.js.map +1 -0
- package/dist/cjs/services/shopify/products/shopify-products-serviceV2.d.ts +7 -0
- package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js +53 -0
- package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js.map +1 -0
- package/dist/cjs/services/shopify/shopify-graphql-transformer.d.ts +6 -0
- package/dist/cjs/services/shopify/shopify-graphql-transformer.js +80 -0
- package/dist/cjs/services/shopify/shopify-graphql-transformer.js.map +1 -0
- package/dist/cjs/services/shopify/types/index.d.ts +1 -0
- package/dist/cjs/services/shopify/types/index.js +18 -0
- package/dist/cjs/services/shopify/types/index.js.map +1 -0
- package/dist/cjs/services/shopify/types/product.d.ts +83 -0
- package/dist/cjs/services/shopify/types/product.js +10 -0
- package/dist/cjs/services/shopify/types/product.js.map +1 -0
- package/dist/cjs/types/shopify-graphql-types/admin.generated.d.ts +4 -1
- package/dist/esm/clients/third-party/shopify/graphql-product-queries.d.ts +1 -0
- package/dist/esm/clients/third-party/shopify/graphql-product-queries.js +106 -0
- package/dist/esm/clients/third-party/shopify/graphql-product-queries.js.map +1 -0
- package/dist/esm/clients/third-party/shopify/shopify-graphql-client.d.ts +9 -0
- package/dist/esm/clients/third-party/shopify/shopify-graphql-client.js +93 -0
- package/dist/esm/clients/third-party/shopify/shopify-graphql-client.js.map +1 -0
- package/dist/esm/clients/third-party/shopify-client.d.ts +0 -2
- package/dist/esm/clients/third-party/shopify-client.js +0 -127
- package/dist/esm/clients/third-party/shopify-client.js.map +1 -1
- package/dist/esm/services/cache/index.d.ts +1 -0
- package/dist/esm/services/cache/index.js +2 -0
- package/dist/esm/services/cache/index.js.map +1 -0
- package/dist/esm/services/cache/product-cache-service.d.ts +9 -0
- package/dist/esm/services/cache/product-cache-service.js +28 -0
- package/dist/esm/services/cache/product-cache-service.js.map +1 -0
- package/dist/esm/services/db/shopify-products-cache-db-service.d.ts +0 -11
- package/dist/esm/services/db/shopify-products-cache-db-service.js +0 -43
- package/dist/esm/services/db/shopify-products-cache-db-service.js.map +1 -1
- package/dist/esm/services/generic-cache-service.d.ts +8 -0
- package/dist/esm/services/generic-cache-service.js +27 -0
- package/dist/esm/services/generic-cache-service.js.map +1 -0
- package/dist/esm/services/index.d.ts +3 -0
- package/dist/esm/services/index.js +3 -0
- package/dist/esm/services/index.js.map +1 -1
- package/dist/esm/services/shopify/index.d.ts +3 -0
- package/dist/esm/services/shopify/index.js +4 -0
- package/dist/esm/services/shopify/index.js.map +1 -0
- package/dist/esm/services/shopify/products/index.d.ts +1 -0
- package/dist/esm/services/shopify/products/index.js +2 -0
- package/dist/esm/services/shopify/products/index.js.map +1 -0
- package/dist/esm/services/shopify/products/shopify-products-serviceV2.d.ts +7 -0
- package/dist/esm/services/shopify/products/shopify-products-serviceV2.js +49 -0
- package/dist/esm/services/shopify/products/shopify-products-serviceV2.js.map +1 -0
- package/dist/esm/services/shopify/shopify-graphql-transformer.d.ts +6 -0
- package/dist/esm/services/shopify/shopify-graphql-transformer.js +77 -0
- package/dist/esm/services/shopify/shopify-graphql-transformer.js.map +1 -0
- package/dist/esm/services/shopify/types/index.d.ts +1 -0
- package/dist/esm/services/shopify/types/index.js +2 -0
- package/dist/esm/services/shopify/types/index.js.map +1 -0
- package/dist/esm/services/shopify/types/product.d.ts +83 -0
- package/dist/esm/services/shopify/types/product.js +7 -0
- package/dist/esm/services/shopify/types/product.js.map +1 -0
- package/dist/esm/types/shopify-graphql-types/admin.generated.d.ts +4 -1
- package/package.json +1 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export interface InternalProductOption {
|
|
2
|
+
name: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface InternalProductCollection {
|
|
6
|
+
id: string;
|
|
7
|
+
legacyResourceId: number;
|
|
8
|
+
title: string;
|
|
9
|
+
handle: string;
|
|
10
|
+
imageUrl?: string;
|
|
11
|
+
productsCount?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface InteralProductCategory {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
ancestorIds?: string[];
|
|
18
|
+
childrenIds?: string[];
|
|
19
|
+
productsCount?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare enum InternalProductStatus {
|
|
22
|
+
Active = "ACTIVE",
|
|
23
|
+
Archived = "ARCHIVED",
|
|
24
|
+
Draft = "DRAFT"
|
|
25
|
+
}
|
|
26
|
+
export interface InternalProduct {
|
|
27
|
+
__typename?: 'Product';
|
|
28
|
+
category?: InteralProductCategory;
|
|
29
|
+
collections?: InternalProductCollection[];
|
|
30
|
+
maxVariantCompareAtPrice?: number;
|
|
31
|
+
minVariantCompareAtPrice?: number;
|
|
32
|
+
createdAt?: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
featuredImageUrl?: string;
|
|
35
|
+
handle?: string;
|
|
36
|
+
hasOnlyDefaultVariant?: boolean;
|
|
37
|
+
hasOutOfStockVariants?: boolean;
|
|
38
|
+
hasVariantsThatRequiresComponents?: boolean;
|
|
39
|
+
id?: string;
|
|
40
|
+
legacyResourceId: number;
|
|
41
|
+
images?: string[];
|
|
42
|
+
inCollection?: boolean;
|
|
43
|
+
isGiftCard?: boolean;
|
|
44
|
+
onlineStoreUrl?: string;
|
|
45
|
+
minVariantPrice?: number;
|
|
46
|
+
maxVariantPrice?: number;
|
|
47
|
+
productType?: string;
|
|
48
|
+
publishedAt?: string;
|
|
49
|
+
status?: InternalProductStatus;
|
|
50
|
+
tags?: Array<string>;
|
|
51
|
+
title?: string;
|
|
52
|
+
totalInventory?: number;
|
|
53
|
+
tracksInventory?: boolean;
|
|
54
|
+
updatedAt?: string;
|
|
55
|
+
variantsCount?: number;
|
|
56
|
+
vendor?: string;
|
|
57
|
+
variants?: InternalProductVariant[];
|
|
58
|
+
}
|
|
59
|
+
export interface InternalProductVariant {
|
|
60
|
+
availableForSale: boolean;
|
|
61
|
+
barcode?: string;
|
|
62
|
+
compareAtPrice?: string;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
displayName?: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
featuredImageUrl?: string;
|
|
67
|
+
inventoryQuantity?: number;
|
|
68
|
+
legacyResourceId: number;
|
|
69
|
+
position: number;
|
|
70
|
+
price: string;
|
|
71
|
+
currency?: string;
|
|
72
|
+
amount: number;
|
|
73
|
+
productId?: string;
|
|
74
|
+
legacyProductResourceId: number;
|
|
75
|
+
selectedOptions?: InternalProductOption[];
|
|
76
|
+
sellableOnlineQuantity: number;
|
|
77
|
+
sellingPlanGroupsCount?: number;
|
|
78
|
+
sku?: string;
|
|
79
|
+
taxCode?: string;
|
|
80
|
+
taxable?: boolean;
|
|
81
|
+
title?: string;
|
|
82
|
+
updatedAt?: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var InternalProductStatus;
|
|
2
|
+
(function (InternalProductStatus) {
|
|
3
|
+
InternalProductStatus["Active"] = "ACTIVE";
|
|
4
|
+
InternalProductStatus["Archived"] = "ARCHIVED";
|
|
5
|
+
InternalProductStatus["Draft"] = "DRAFT";
|
|
6
|
+
})(InternalProductStatus || (InternalProductStatus = {}));
|
|
7
|
+
//# sourceMappingURL=product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../../../src/services/shopify/types/product.ts"],"names":[],"mappings":"AAuBA,MAAM,CAAN,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAE/B,0CAAiB,CAAA;IAEjB,8CAAqB,CAAA;IAErB,wCAAe,CAAA;AACjB,CAAC,EAPW,qBAAqB,KAArB,qBAAqB,QAOhC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as AdminTypes from './admin.types';
|
|
2
2
|
export type GetProductQueryVariables = AdminTypes.Exact<{
|
|
3
3
|
id: AdminTypes.Scalars['ID']['input'];
|
|
4
|
+
first: AdminTypes.Scalars['Int']['input'];
|
|
5
|
+
after?: AdminTypes.InputMaybe<AdminTypes.Scalars['String']['input']>;
|
|
4
6
|
}>;
|
|
5
7
|
export type GetProductQuery = {
|
|
6
8
|
product?: AdminTypes.Maybe<(Pick<AdminTypes.Product, 'id' | 'handle' | 'productType' | 'hasOnlyDefaultVariant' | 'isGiftCard' | 'legacyResourceId' | 'onlineStoreUrl' | 'publishedAt' | 'requiresSellingPlan' | 'status' | 'tags' | 'title' | 'totalInventory' | 'tracksInventory' | 'vendor' | 'createdAt' | 'updatedAt'> & {
|
|
@@ -11,6 +13,7 @@ export type GetProductQuery = {
|
|
|
11
13
|
variantsCount?: AdminTypes.Maybe<Pick<AdminTypes.Count, 'count'>>;
|
|
12
14
|
seo: Pick<AdminTypes.Seo, 'title' | 'description'>;
|
|
13
15
|
variants: {
|
|
16
|
+
pageInfo: Pick<AdminTypes.PageInfo, 'hasNextPage' | 'endCursor'>;
|
|
14
17
|
nodes: Array<(Pick<AdminTypes.ProductVariant, 'availableForSale' | 'barcode' | 'compareAtPrice' | 'createdAt' | 'displayName' | 'id' | 'inventoryQuantity' | 'price' | 'sellableOnlineQuantity' | 'sku' | 'taxable' | 'title' | 'updatedAt'> & {
|
|
15
18
|
image?: AdminTypes.Maybe<Pick<AdminTypes.Image, 'id' | 'url'>>;
|
|
16
19
|
media: {
|
|
@@ -58,7 +61,7 @@ export type GetProductQuery = {
|
|
|
58
61
|
})>;
|
|
59
62
|
};
|
|
60
63
|
interface GeneratedQueryTypes {
|
|
61
|
-
"\n
|
|
64
|
+
"\n#graphql\nquery GetProduct($id: ID!, $first: Int!, $after: String) {\n product(id: $id) { \n id\n handle\n productType\n hasOnlyDefaultVariant\n isGiftCard\n legacyResourceId\n onlineStoreUrl\n productType\n publishedAt\n requiresSellingPlan\n status\n tags\n title\n totalInventory\n tracksInventory\n vendor\n createdAt\n updatedAt\n priceRangeV2 {\n maxVariantPrice {\n amount\n currencyCode\n }\n minVariantPrice {\n amount\n currencyCode\n }\n }\n variantsCount {\n count\n }\n seo {\n title\n description\n }\n variants (first: $first, after: $after) { \n pageInfo {\n hasNextPage\n endCursor\n }\n nodes {\n availableForSale\n barcode\n compareAtPrice\n createdAt\n displayName\n id\n image {\n id\n url \n }\n inventoryQuantity\n price \n media (first: 10) {\n nodes {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n }\n }\n selectedOptions {\n name\n value\n }\n sellableOnlineQuantity\n sku\n taxable\n title\n updatedAt\n }\n }\n media (first: 10) {\n nodes {\n id\n mediaContentType\n status\n preview {\n image {\n id\n url\n }\n status\n }\n }\n }\n category {\n id\n name\n fullName\n parentId\n }\n }\n}\n": {
|
|
62
65
|
return: GetProductQuery;
|
|
63
66
|
variables: GetProductQueryVariables;
|
|
64
67
|
};
|