@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.
Files changed (87) hide show
  1. package/dist/cjs/clients/third-party/shopify/graphql-product-queries.d.ts +1 -0
  2. package/dist/cjs/clients/third-party/shopify/graphql-product-queries.js +109 -0
  3. package/dist/cjs/clients/third-party/shopify/graphql-product-queries.js.map +1 -0
  4. package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.d.ts +9 -0
  5. package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.js +97 -0
  6. package/dist/cjs/clients/third-party/shopify/shopify-graphql-client.js.map +1 -0
  7. package/dist/cjs/clients/third-party/shopify-client.d.ts +0 -2
  8. package/dist/cjs/clients/third-party/shopify-client.js +0 -127
  9. package/dist/cjs/clients/third-party/shopify-client.js.map +1 -1
  10. package/dist/cjs/services/cache/index.d.ts +1 -0
  11. package/dist/cjs/services/cache/index.js +18 -0
  12. package/dist/cjs/services/cache/index.js.map +1 -0
  13. package/dist/cjs/services/cache/product-cache-service.d.ts +9 -0
  14. package/dist/cjs/services/cache/product-cache-service.js +32 -0
  15. package/dist/cjs/services/cache/product-cache-service.js.map +1 -0
  16. package/dist/cjs/services/db/shopify-products-cache-db-service.d.ts +0 -11
  17. package/dist/cjs/services/db/shopify-products-cache-db-service.js +0 -43
  18. package/dist/cjs/services/db/shopify-products-cache-db-service.js.map +1 -1
  19. package/dist/cjs/services/generic-cache-service.d.ts +8 -0
  20. package/dist/cjs/services/generic-cache-service.js +31 -0
  21. package/dist/cjs/services/generic-cache-service.js.map +1 -0
  22. package/dist/cjs/services/index.d.ts +3 -0
  23. package/dist/cjs/services/index.js +3 -0
  24. package/dist/cjs/services/index.js.map +1 -1
  25. package/dist/cjs/services/shopify/index.d.ts +3 -0
  26. package/dist/cjs/services/shopify/index.js +20 -0
  27. package/dist/cjs/services/shopify/index.js.map +1 -0
  28. package/dist/cjs/services/shopify/products/index.d.ts +1 -0
  29. package/dist/cjs/services/shopify/products/index.js +18 -0
  30. package/dist/cjs/services/shopify/products/index.js.map +1 -0
  31. package/dist/cjs/services/shopify/products/shopify-products-serviceV2.d.ts +7 -0
  32. package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js +53 -0
  33. package/dist/cjs/services/shopify/products/shopify-products-serviceV2.js.map +1 -0
  34. package/dist/cjs/services/shopify/shopify-graphql-transformer.d.ts +6 -0
  35. package/dist/cjs/services/shopify/shopify-graphql-transformer.js +80 -0
  36. package/dist/cjs/services/shopify/shopify-graphql-transformer.js.map +1 -0
  37. package/dist/cjs/services/shopify/types/index.d.ts +1 -0
  38. package/dist/cjs/services/shopify/types/index.js +18 -0
  39. package/dist/cjs/services/shopify/types/index.js.map +1 -0
  40. package/dist/cjs/services/shopify/types/product.d.ts +83 -0
  41. package/dist/cjs/services/shopify/types/product.js +10 -0
  42. package/dist/cjs/services/shopify/types/product.js.map +1 -0
  43. package/dist/cjs/types/shopify-graphql-types/admin.generated.d.ts +4 -1
  44. package/dist/esm/clients/third-party/shopify/graphql-product-queries.d.ts +1 -0
  45. package/dist/esm/clients/third-party/shopify/graphql-product-queries.js +106 -0
  46. package/dist/esm/clients/third-party/shopify/graphql-product-queries.js.map +1 -0
  47. package/dist/esm/clients/third-party/shopify/shopify-graphql-client.d.ts +9 -0
  48. package/dist/esm/clients/third-party/shopify/shopify-graphql-client.js +93 -0
  49. package/dist/esm/clients/third-party/shopify/shopify-graphql-client.js.map +1 -0
  50. package/dist/esm/clients/third-party/shopify-client.d.ts +0 -2
  51. package/dist/esm/clients/third-party/shopify-client.js +0 -127
  52. package/dist/esm/clients/third-party/shopify-client.js.map +1 -1
  53. package/dist/esm/services/cache/index.d.ts +1 -0
  54. package/dist/esm/services/cache/index.js +2 -0
  55. package/dist/esm/services/cache/index.js.map +1 -0
  56. package/dist/esm/services/cache/product-cache-service.d.ts +9 -0
  57. package/dist/esm/services/cache/product-cache-service.js +28 -0
  58. package/dist/esm/services/cache/product-cache-service.js.map +1 -0
  59. package/dist/esm/services/db/shopify-products-cache-db-service.d.ts +0 -11
  60. package/dist/esm/services/db/shopify-products-cache-db-service.js +0 -43
  61. package/dist/esm/services/db/shopify-products-cache-db-service.js.map +1 -1
  62. package/dist/esm/services/generic-cache-service.d.ts +8 -0
  63. package/dist/esm/services/generic-cache-service.js +27 -0
  64. package/dist/esm/services/generic-cache-service.js.map +1 -0
  65. package/dist/esm/services/index.d.ts +3 -0
  66. package/dist/esm/services/index.js +3 -0
  67. package/dist/esm/services/index.js.map +1 -1
  68. package/dist/esm/services/shopify/index.d.ts +3 -0
  69. package/dist/esm/services/shopify/index.js +4 -0
  70. package/dist/esm/services/shopify/index.js.map +1 -0
  71. package/dist/esm/services/shopify/products/index.d.ts +1 -0
  72. package/dist/esm/services/shopify/products/index.js +2 -0
  73. package/dist/esm/services/shopify/products/index.js.map +1 -0
  74. package/dist/esm/services/shopify/products/shopify-products-serviceV2.d.ts +7 -0
  75. package/dist/esm/services/shopify/products/shopify-products-serviceV2.js +49 -0
  76. package/dist/esm/services/shopify/products/shopify-products-serviceV2.js.map +1 -0
  77. package/dist/esm/services/shopify/shopify-graphql-transformer.d.ts +6 -0
  78. package/dist/esm/services/shopify/shopify-graphql-transformer.js +77 -0
  79. package/dist/esm/services/shopify/shopify-graphql-transformer.js.map +1 -0
  80. package/dist/esm/services/shopify/types/index.d.ts +1 -0
  81. package/dist/esm/services/shopify/types/index.js +2 -0
  82. package/dist/esm/services/shopify/types/index.js.map +1 -0
  83. package/dist/esm/services/shopify/types/product.d.ts +83 -0
  84. package/dist/esm/services/shopify/types/product.js +7 -0
  85. package/dist/esm/services/shopify/types/product.js.map +1 -0
  86. package/dist/esm/types/shopify-graphql-types/admin.generated.d.ts +4 -1
  87. 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 #graphql\n query GetProduct($id: ID!) {\n product(id: $id) {\n \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: 100) {\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 ": {
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adtrackify/at-service-common",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "",
5
5
  "files": [
6
6
  "dist/*"