@things-factory/marketplace-base 8.0.7 → 9.0.0-beta.12

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 (229) hide show
  1. package/dist-server/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +7 -7
  3. package/server/constants/attachment.ts +0 -3
  4. package/server/constants/index.ts +0 -4
  5. package/server/constants/order.ts +0 -11
  6. package/server/constants/platform.ts +0 -7
  7. package/server/constants/product.ts +0 -5
  8. package/server/constants/reserve-qty-order-statuses.ts +0 -7
  9. package/server/controllers/index.ts +0 -0
  10. package/server/entities/index.ts +0 -45
  11. package/server/entities/marketplace-order-item.ts +0 -137
  12. package/server/entities/marketplace-order-shipping-item.ts +0 -55
  13. package/server/entities/marketplace-order-shipping.ts +0 -168
  14. package/server/entities/marketplace-order.ts +0 -141
  15. package/server/entities/marketplace-product-attribute.ts +0 -83
  16. package/server/entities/marketplace-product-category.ts +0 -53
  17. package/server/entities/marketplace-product-variation-price.ts +0 -63
  18. package/server/entities/marketplace-product-variation.ts +0 -147
  19. package/server/entities/marketplace-product.ts +0 -164
  20. package/server/entities/marketplace-refund-order-item.ts +0 -56
  21. package/server/entities/marketplace-refund-order.ts +0 -51
  22. package/server/entities/marketplace-setting.ts +0 -49
  23. package/server/entities/store-replenishment-item.ts +0 -48
  24. package/server/entities/store-replenishment.ts +0 -79
  25. package/server/graphql/index.ts +0 -9
  26. package/server/graphql/resolvers/index.ts +0 -14
  27. package/server/graphql/resolvers/marketplace-order/auto-initialise-logistics-by-batch.ts +0 -164
  28. package/server/graphql/resolvers/marketplace-order/auto-update-order-ready-to-ship.ts +0 -136
  29. package/server/graphql/resolvers/marketplace-order/cancel-marketplace-order.ts +0 -64
  30. package/server/graphql/resolvers/marketplace-order/create-marketplace-order-note.ts +0 -21
  31. package/server/graphql/resolvers/marketplace-order/dashboard-marketplace-orders.ts +0 -82
  32. package/server/graphql/resolvers/marketplace-order/dashboard-marketplace-sales-average.ts +0 -82
  33. package/server/graphql/resolvers/marketplace-order/dashboard-marketplace-sales.ts +0 -93
  34. package/server/graphql/resolvers/marketplace-order/delete-marketplace-orders.ts +0 -17
  35. package/server/graphql/resolvers/marketplace-order/generate-marketplace-order.ts +0 -180
  36. package/server/graphql/resolvers/marketplace-order/get-address-list.ts +0 -9
  37. package/server/graphql/resolvers/marketplace-order/get-branch-list.ts +0 -9
  38. package/server/graphql/resolvers/marketplace-order/get-etrax-order-document.ts +0 -49
  39. package/server/graphql/resolvers/marketplace-order/get-logistics-param.ts +0 -47
  40. package/server/graphql/resolvers/marketplace-order/get-order-document.ts +0 -149
  41. package/server/graphql/resolvers/marketplace-order/get-store-logistics.ts +0 -9
  42. package/server/graphql/resolvers/marketplace-order/get-time-slot.ts +0 -9
  43. package/server/graphql/resolvers/marketplace-order/index.ts +0 -75
  44. package/server/graphql/resolvers/marketplace-order/initialise-lazada-logistics-by-batch.ts +0 -165
  45. package/server/graphql/resolvers/marketplace-order/initialise-logistics-by-batch.ts +0 -41
  46. package/server/graphql/resolvers/marketplace-order/initialise-logistics.ts +0 -29
  47. package/server/graphql/resolvers/marketplace-order/initialise-shopee-logistics-by-batch.ts +0 -97
  48. package/server/graphql/resolvers/marketplace-order/marketplace-order.ts +0 -12
  49. package/server/graphql/resolvers/marketplace-order/marketplace-orders-for-batch-init.ts +0 -52
  50. package/server/graphql/resolvers/marketplace-order/marketplace-orders-for-export.ts +0 -63
  51. package/server/graphql/resolvers/marketplace-order/marketplace-orders.ts +0 -56
  52. package/server/graphql/resolvers/marketplace-order/set-marketplace-order-delivered.ts +0 -25
  53. package/server/graphql/resolvers/marketplace-order/set-marketplace-order-failed-delivery.ts +0 -25
  54. package/server/graphql/resolvers/marketplace-order/set-own-shipping-provider-by-orders.ts +0 -39
  55. package/server/graphql/resolvers/marketplace-order/split-orders-by-batch.ts +0 -245
  56. package/server/graphql/resolvers/marketplace-order/sync-all-marketplace-order.ts +0 -39
  57. package/server/graphql/resolvers/marketplace-order/sync-marketplace-order.ts +0 -940
  58. package/server/graphql/resolvers/marketplace-order/sync-marketplace-orders-by-platform.ts +0 -31
  59. package/server/graphql/resolvers/marketplace-order/sync-shopee-awb.ts +0 -49
  60. package/server/graphql/resolvers/marketplace-order/update-marketplace-order.ts +0 -35
  61. package/server/graphql/resolvers/marketplace-order/update-order-ready-to-ship.ts +0 -142
  62. package/server/graphql/resolvers/marketplace-order-item/create-marketplace-order-item.ts +0 -14
  63. package/server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-item.ts +0 -10
  64. package/server/graphql/resolvers/marketplace-order-item/delete-marketplace-order-items.ts +0 -17
  65. package/server/graphql/resolvers/marketplace-order-item/index.ts +0 -22
  66. package/server/graphql/resolvers/marketplace-order-item/marketplace-order-item.ts +0 -14
  67. package/server/graphql/resolvers/marketplace-order-item/marketplace-order-items.ts +0 -15
  68. package/server/graphql/resolvers/marketplace-order-item/update-marketplace-order-item.ts +0 -18
  69. package/server/graphql/resolvers/marketplace-order-item/update-multiple-marketplace-order-item.ts +0 -44
  70. package/server/graphql/resolvers/marketplace-order-shipping/create-marketplace-order-shipping.ts +0 -14
  71. package/server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shipping.ts +0 -10
  72. package/server/graphql/resolvers/marketplace-order-shipping/delete-marketplace-order-shippings.ts +0 -17
  73. package/server/graphql/resolvers/marketplace-order-shipping/index.ts +0 -23
  74. package/server/graphql/resolvers/marketplace-order-shipping/marketplace-order-shipping.ts +0 -25
  75. package/server/graphql/resolvers/marketplace-order-shipping/marketplace-order-shippings-for-batch-init.ts +0 -88
  76. package/server/graphql/resolvers/marketplace-order-shipping/marketplace-order-shippings.ts +0 -43
  77. package/server/graphql/resolvers/marketplace-order-shipping/update-marketplace-order-shipping.ts +0 -32
  78. package/server/graphql/resolvers/marketplace-order-shipping/update-multiple-marketplace-order-shipping.ts +0 -44
  79. package/server/graphql/resolvers/marketplace-order-shipping-item/create-marketplace-order-shipping-item.ts +0 -14
  80. package/server/graphql/resolvers/marketplace-order-shipping-item/delete-marketplace-order-shipping-item.ts +0 -10
  81. package/server/graphql/resolvers/marketplace-order-shipping-item/delete-marketplace-order-shipping-items.ts +0 -15
  82. package/server/graphql/resolvers/marketplace-order-shipping-item/index.ts +0 -20
  83. package/server/graphql/resolvers/marketplace-order-shipping-item/marketplace-order-shipping-item.ts +0 -21
  84. package/server/graphql/resolvers/marketplace-order-shipping-item/marketplace-order-shipping-items.ts +0 -14
  85. package/server/graphql/resolvers/marketplace-order-shipping-item/update-marketplace-order-shipping-item.ts +0 -18
  86. package/server/graphql/resolvers/marketplace-order-shipping-item/update-multiple-marketplace-order-shipping-item.ts +0 -44
  87. package/server/graphql/resolvers/marketplace-product/create-marketplace-product.ts +0 -35
  88. package/server/graphql/resolvers/marketplace-product/delete-marketplace-product.ts +0 -10
  89. package/server/graphql/resolvers/marketplace-product/delete-marketplace-products.ts +0 -17
  90. package/server/graphql/resolvers/marketplace-product/index.ts +0 -27
  91. package/server/graphql/resolvers/marketplace-product/marketplace-product.ts +0 -24
  92. package/server/graphql/resolvers/marketplace-product/marketplace-products.ts +0 -23
  93. package/server/graphql/resolvers/marketplace-product/sync-all-marketplace-store-products.ts +0 -225
  94. package/server/graphql/resolvers/marketplace-product/sync-marketplace-store-products.ts +0 -222
  95. package/server/graphql/resolvers/marketplace-product/update-marketplace-product.ts +0 -24
  96. package/server/graphql/resolvers/marketplace-product/upsert-marketplace-product.ts +0 -39
  97. package/server/graphql/resolvers/marketplace-product-attribute/create-marketplace-product-attribute.ts +0 -14
  98. package/server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attribute.ts +0 -10
  99. package/server/graphql/resolvers/marketplace-product-attribute/delete-marketplace-product-attributes.ts +0 -17
  100. package/server/graphql/resolvers/marketplace-product-attribute/index.ts +0 -22
  101. package/server/graphql/resolvers/marketplace-product-attribute/marketplace-product-attribute.ts +0 -14
  102. package/server/graphql/resolvers/marketplace-product-attribute/marketplace-product-attributes.ts +0 -14
  103. package/server/graphql/resolvers/marketplace-product-attribute/update-marketplace-product-attribute.ts +0 -18
  104. package/server/graphql/resolvers/marketplace-product-attribute/update-multiple-marketplace-product-attribute.ts +0 -44
  105. package/server/graphql/resolvers/marketplace-product-category/create-marketplace-product-category.ts +0 -14
  106. package/server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-categories.ts +0 -17
  107. package/server/graphql/resolvers/marketplace-product-category/delete-marketplace-product-category.ts +0 -10
  108. package/server/graphql/resolvers/marketplace-product-category/index.ts +0 -22
  109. package/server/graphql/resolvers/marketplace-product-category/marketplace-product-categories.ts +0 -14
  110. package/server/graphql/resolvers/marketplace-product-category/marketplace-product-category.ts +0 -14
  111. package/server/graphql/resolvers/marketplace-product-category/update-marketplace-product-category.ts +0 -18
  112. package/server/graphql/resolvers/marketplace-product-category/update-multiple-marketplace-product-category.ts +0 -44
  113. package/server/graphql/resolvers/marketplace-product-variation/create-marketplace-product-variation.ts +0 -14
  114. package/server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variation.ts +0 -10
  115. package/server/graphql/resolvers/marketplace-product-variation/delete-marketplace-product-variations.ts +0 -17
  116. package/server/graphql/resolvers/marketplace-product-variation/index.ts +0 -30
  117. package/server/graphql/resolvers/marketplace-product-variation/link-warehouse-marketplace-product-variations.ts +0 -59
  118. package/server/graphql/resolvers/marketplace-product-variation/marketplace-product-variation.ts +0 -14
  119. package/server/graphql/resolvers/marketplace-product-variation/marketplace-product-variations.ts +0 -79
  120. package/server/graphql/resolvers/marketplace-product-variation/update-marketplace-product-variation.ts +0 -32
  121. package/server/graphql/resolvers/marketplace-product-variation/update-multiple-marketplace-product-variation-quantity.ts +0 -76
  122. package/server/graphql/resolvers/marketplace-product-variation/update-multiple-marketplace-product-variations.ts +0 -49
  123. package/server/graphql/resolvers/marketplace-product-variation-price/create-marketplace-product-variation-price.ts +0 -16
  124. package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-price.ts +0 -13
  125. package/server/graphql/resolvers/marketplace-product-variation-price/delete-marketplace-product-variation-prices.ts +0 -18
  126. package/server/graphql/resolvers/marketplace-product-variation-price/index.ts +0 -19
  127. package/server/graphql/resolvers/marketplace-product-variation-price/marketplace-product-variation-price-query.ts +0 -52
  128. package/server/graphql/resolvers/marketplace-product-variation-price/update-marketplace-product-variation-price.ts +0 -20
  129. package/server/graphql/resolvers/marketplace-product-variation-price/update-multiple-marketplace-product-variation-price.ts +0 -49
  130. package/server/graphql/resolvers/marketplace-refund-order/index.ts +0 -9
  131. package/server/graphql/resolvers/marketplace-refund-order/sync-all-marketplace-refund-orders.ts +0 -122
  132. package/server/graphql/resolvers/marketplace-refund-order/sync-marketplace-refund-orders.ts +0 -106
  133. package/server/graphql/resolvers/marketplace-report/index.ts +0 -7
  134. package/server/graphql/resolvers/marketplace-report/marketplace-sales-report.ts +0 -143
  135. package/server/graphql/resolvers/store-replenishment/create-store-replenishment.ts +0 -16
  136. package/server/graphql/resolvers/store-replenishment/delete-store-replenishment.ts +0 -13
  137. package/server/graphql/resolvers/store-replenishment/delete-store-replenishments.ts +0 -18
  138. package/server/graphql/resolvers/store-replenishment/index.ts +0 -19
  139. package/server/graphql/resolvers/store-replenishment/store-replenishment-query.ts +0 -52
  140. package/server/graphql/resolvers/store-replenishment/update-multiple-store-replenishment.ts +0 -49
  141. package/server/graphql/resolvers/store-replenishment/update-store-replenishment.ts +0 -20
  142. package/server/graphql/resolvers/store-replenishment-item/create-store-replenishment-item.ts +0 -16
  143. package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-item.ts +0 -13
  144. package/server/graphql/resolvers/store-replenishment-item/delete-store-replenishment-items.ts +0 -18
  145. package/server/graphql/resolvers/store-replenishment-item/index.ts +0 -19
  146. package/server/graphql/resolvers/store-replenishment-item/store-replenishment-item-query.ts +0 -52
  147. package/server/graphql/resolvers/store-replenishment-item/update-multiple-store-replenishment-item.ts +0 -49
  148. package/server/graphql/resolvers/store-replenishment-item/update-store-replenishment-item.ts +0 -20
  149. package/server/graphql/types/index.ts +0 -13
  150. package/server/graphql/types/marketplace-order/dashboard-order.ts +0 -13
  151. package/server/graphql/types/marketplace-order/full-logistics-detail.ts +0 -10
  152. package/server/graphql/types/marketplace-order/index.ts +0 -69
  153. package/server/graphql/types/marketplace-order/logistics-detail.ts +0 -8
  154. package/server/graphql/types/marketplace-order/logistics-info.ts +0 -27
  155. package/server/graphql/types/marketplace-order/logistics-init.ts +0 -9
  156. package/server/graphql/types/marketplace-order/logistics-time.ts +0 -9
  157. package/server/graphql/types/marketplace-order/logistics.ts +0 -21
  158. package/server/graphql/types/marketplace-order/marketplace-logistics.ts +0 -11
  159. package/server/graphql/types/marketplace-order/marketplace-order-export.ts +0 -19
  160. package/server/graphql/types/marketplace-order/marketplace-order-list.ts +0 -8
  161. package/server/graphql/types/marketplace-order/marketplace-order-patch.ts +0 -14
  162. package/server/graphql/types/marketplace-order/marketplace-order.ts +0 -40
  163. package/server/graphql/types/marketplace-order/new-marketplace-order.ts +0 -22
  164. package/server/graphql/types/marketplace-order/order-address.ts +0 -16
  165. package/server/graphql/types/marketplace-order/order-document.ts +0 -13
  166. package/server/graphql/types/marketplace-order-item/index.ts +0 -21
  167. package/server/graphql/types/marketplace-order-item/marketplace-order-item-list.ts +0 -8
  168. package/server/graphql/types/marketplace-order-item/marketplace-order-item-patch.ts +0 -10
  169. package/server/graphql/types/marketplace-order-item/marketplace-order-item.ts +0 -32
  170. package/server/graphql/types/marketplace-order-item/new-marketplace-order-item.ts +0 -17
  171. package/server/graphql/types/marketplace-order-shipping/index.ts +0 -31
  172. package/server/graphql/types/marketplace-order-shipping/marketplace-order-shipping-list.ts +0 -8
  173. package/server/graphql/types/marketplace-order-shipping/marketplace-order-shipping-patch.ts +0 -45
  174. package/server/graphql/types/marketplace-order-shipping/marketplace-order-shipping.ts +0 -59
  175. package/server/graphql/types/marketplace-order-shipping/new-marketplace-order-shipping.ts +0 -44
  176. package/server/graphql/types/marketplace-order-shipping-item/index.ts +0 -32
  177. package/server/graphql/types/marketplace-order-shipping-item/marketplace-order-shipping-item-list.ts +0 -8
  178. package/server/graphql/types/marketplace-order-shipping-item/marketplace-order-shipping-item-patch.ts +0 -13
  179. package/server/graphql/types/marketplace-order-shipping-item/marketplace-order-shipping-item.ts +0 -16
  180. package/server/graphql/types/marketplace-order-shipping-item/new-marketplace-order-shipping-item.ts +0 -12
  181. package/server/graphql/types/marketplace-product/index.ts +0 -28
  182. package/server/graphql/types/marketplace-product/marketplace-product-list.ts +0 -8
  183. package/server/graphql/types/marketplace-product/marketplace-product-patch.ts +0 -24
  184. package/server/graphql/types/marketplace-product/marketplace-product.ts +0 -30
  185. package/server/graphql/types/marketplace-product/new-marketplace-product.ts +0 -24
  186. package/server/graphql/types/marketplace-product-attribute/index.ts +0 -35
  187. package/server/graphql/types/marketplace-product-attribute/marketplace-product-attribute-list.ts +0 -8
  188. package/server/graphql/types/marketplace-product-attribute/marketplace-product-attribute-patch.ts +0 -10
  189. package/server/graphql/types/marketplace-product-attribute/marketplace-product-attribute.ts +0 -20
  190. package/server/graphql/types/marketplace-product-attribute/new-marketplace-product-attribute.ts +0 -13
  191. package/server/graphql/types/marketplace-product-category/index.ts +0 -28
  192. package/server/graphql/types/marketplace-product-category/marketplace-product-category-list.ts +0 -8
  193. package/server/graphql/types/marketplace-product-category/marketplace-product-category-patch.ts +0 -10
  194. package/server/graphql/types/marketplace-product-category/marketplace-product-category.ts +0 -17
  195. package/server/graphql/types/marketplace-product-category/new-marketplace-product-category.ts +0 -10
  196. package/server/graphql/types/marketplace-product-variation/index.ts +0 -47
  197. package/server/graphql/types/marketplace-product-variation/marketplace-product-variation-list.ts +0 -8
  198. package/server/graphql/types/marketplace-product-variation/marketplace-product-variation-patch.ts +0 -32
  199. package/server/graphql/types/marketplace-product-variation/marketplace-product-variation.ts +0 -35
  200. package/server/graphql/types/marketplace-product-variation/new-marketplace-product-variation.ts +0 -26
  201. package/server/graphql/types/marketplace-product-variation/warehouse-product.ts +0 -9
  202. package/server/graphql/types/marketplace-product-variation-price/index.ts +0 -21
  203. package/server/graphql/types/marketplace-product-variation-price/marketplace-product-variation-price-list.ts +0 -8
  204. package/server/graphql/types/marketplace-product-variation-price/marketplace-product-variation-price-patch.ts +0 -17
  205. package/server/graphql/types/marketplace-product-variation-price/marketplace-product-variation-price.ts +0 -21
  206. package/server/graphql/types/marketplace-product-variation-price/new-marketplace-product-variation-price.ts +0 -14
  207. package/server/graphql/types/marketplace-refund-order/index.ts +0 -16
  208. package/server/graphql/types/marketplace-refund-order/marketplace-refund-order-list.ts +0 -8
  209. package/server/graphql/types/marketplace-refund-order/marketplace-refund-order.ts +0 -17
  210. package/server/graphql/types/marketplace-report/index.ts +0 -10
  211. package/server/graphql/types/marketplace-report/marketplace-sales-report-list.ts +0 -8
  212. package/server/graphql/types/marketplace-report/marketplace-sales-report.ts +0 -67
  213. package/server/graphql/types/store-replenishment/index.ts +0 -21
  214. package/server/graphql/types/store-replenishment/new-store-replenishment.ts +0 -8
  215. package/server/graphql/types/store-replenishment/store-replenishment-list.ts +0 -8
  216. package/server/graphql/types/store-replenishment/store-replenishment-patch.ts +0 -10
  217. package/server/graphql/types/store-replenishment/store-replenishment.ts +0 -24
  218. package/server/graphql/types/store-replenishment-item/index.ts +0 -21
  219. package/server/graphql/types/store-replenishment-item/new-store-replenishment-item.ts +0 -8
  220. package/server/graphql/types/store-replenishment-item/store-replenishment-item-list.ts +0 -8
  221. package/server/graphql/types/store-replenishment-item/store-replenishment-item-patch.ts +0 -10
  222. package/server/graphql/types/store-replenishment-item/store-replenishment-item.ts +0 -15
  223. package/server/index.ts +0 -6
  224. package/server/middlewares/index.ts +0 -3
  225. package/server/migrations/index.ts +0 -9
  226. package/server/routes.ts +0 -26
  227. package/server/utils/index.ts +0 -1
  228. package/server/utils/no-generator.ts +0 -25
  229. package/tsconfig.json +0 -9
@@ -1,12 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const NewMarketplaceOrderShippingItem = gql`
4
- input NewMarketplaceOrderShippingItem {
5
- id: String
6
- name: String
7
- marketplaceOrderItem: ObjectRef
8
- marketplaceOrderShipping: ObjectRef
9
- product: ObjectRef
10
- qty: Int
11
- }
12
- `
@@ -1,28 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-product'
4
- export * from './new-marketplace-product'
5
- export * from './marketplace-product-list'
6
- export * from './marketplace-product-patch'
7
-
8
- export const MarketplaceProductResolver = gql`
9
- extend type Mutation {
10
- createMarketplaceProduct(marketplaceProduct: NewMarketplaceProduct!): MarketplaceProduct @transaction
11
- updateMarketplaceProduct(
12
- foundProduct: NewMarketplaceProduct!
13
- marketplaceProduct: MarketplaceProductPatch!
14
- file: Upload
15
- ): MarketplaceProduct @transaction
16
- upsertMarketplaceProduct(marketplaceProduct: MarketplaceProductPatch!, file: Upload): MarketplaceProduct
17
- @transaction
18
- deleteMarketplaceProduct(name: String!): Boolean
19
- deleteMarketplaceProducts(names: [String]!): Boolean
20
- syncMarketplaceStoreProducts(storeId: String!): Boolean
21
- syncAllMarketplaceStoreProducts(filters: [Filter], pagination: Pagination, sortings: [Sorting]): Boolean
22
- }
23
-
24
- extend type Query {
25
- marketplaceProducts(filters: [Filter], pagination: Pagination, sortings: [Sorting]): MarketplaceProductList
26
- marketplaceProduct(name: String!, isku: String!): MarketplaceProduct
27
- }
28
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductList = gql`
4
- type MarketplaceProductList {
5
- items: [MarketplaceProduct]
6
- total: Int
7
- }
8
- `
@@ -1,24 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductPatch = gql`
4
- input MarketplaceProductPatch {
5
- id: String
6
- marketplaceStore: ObjectRef
7
- marketplaceProductCategory: ObjectRef
8
- marketplaceProductVariations: [ObjectRef]
9
- itemId: String
10
- isku: String
11
- status: String
12
- name: String
13
- description: String
14
- type: String
15
- currency: String
16
- hasVariation: Boolean
17
- categoryId: String
18
- storageType: String
19
- condition: String
20
- daysToShip: String
21
- discountId: String
22
- isPreOrder: Boolean
23
- }
24
- `
@@ -1,30 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProduct = gql`
4
- type MarketplaceProduct {
5
- id: String
6
- domain: Domain
7
- marketplaceStore: MarketplaceStore
8
- marketplaceProductCategory: MarketplaceProductCategory
9
- marketplaceProductVariations: [MarketplaceProductVariation]
10
- itemId: String
11
- isku: String
12
- status: String
13
- name: String
14
- type: String
15
- storageType: String
16
- description: String
17
- currency: String
18
- hasVariation: Boolean
19
- categoryId: String
20
- condition: String
21
- daysToShip: String
22
- discountId: String
23
- isPreOrder: Boolean
24
- attachment: [Attachment]
25
- updater: User
26
- creator: User
27
- updatedAt: String
28
- createdAt: String
29
- }
30
- `
@@ -1,24 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const NewMarketplaceProduct = gql`
4
- input NewMarketplaceProduct {
5
- id: String
6
- name: String
7
- description: String
8
- type: String
9
- marketplaceProductVariations: [NewMarketplaceProductVariation]
10
- marketplaceProductAttribute: NewMarketplaceProductAttribute
11
- marketplaceProductCategory: NewMarketplaceProductCategory
12
- itemId: String
13
- isku: String
14
- status: String
15
- currency: String
16
- hasVariation: Boolean
17
- categoryId: String
18
- condition: String
19
- storageType: String
20
- daysToShip: String
21
- discountId: String
22
- isPreOrder: Boolean
23
- }
24
- `
@@ -1,35 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-product-attribute'
4
- export * from './new-marketplace-product-attribute'
5
- export * from './marketplace-product-attribute-list'
6
- export * from './marketplace-product-attribute-patch'
7
-
8
- export const MarketplaceProductAttributeResolver = gql`
9
- extend type Mutation {
10
- createMarketplaceProductAttribute(
11
- marketplaceProductAttribute: NewMarketplaceProductAttribute!
12
- ): MarketplaceProductAttribute
13
-
14
- updateMarketplaceProductAttribute(
15
- name: String!
16
- patch: MarketplaceProductAttributePatch!
17
- ): MarketplaceProductAttribute
18
-
19
- updateMultipleMarketplaceProductAttribute(
20
- patches: [MarketplaceProductAttributePatch]!
21
- ): [MarketplaceProductAttribute]
22
-
23
- deleteMarketplaceProductAttribute(name: String!): Boolean
24
- deleteMarketplaceProductAttributes(names: [String]!): Boolean
25
- }
26
-
27
- extend type Query {
28
- marketplaceProductAttributes(
29
- filters: [Filter]
30
- pagination: Pagination
31
- sortings: [Sorting]
32
- ): MarketplaceProductAttributeList
33
- marketplaceProductAttribute(name: String!): MarketplaceProductAttribute
34
- }
35
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductAttributeList = gql`
4
- type MarketplaceProductAttributeList {
5
- items: [MarketplaceProductAttribute]
6
- total: Int
7
- }
8
- `
@@ -1,10 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductAttributePatch = gql`
4
- input MarketplaceProductAttributePatch {
5
- id: String
6
- name: String
7
- description: String
8
- cuFlag: String
9
- }
10
- `
@@ -1,20 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductAttribute = gql`
4
- type MarketplaceProductAttribute {
5
- id: String
6
- name: String
7
- domain: Domain
8
- marketplaceProduct: MarketplaceProduct
9
- attributeId: String
10
- isMandatory: Boolean
11
- attributeType: String
12
- option: String
13
- originalValue: String
14
- description: String
15
- updater: User
16
- creator: User
17
- updatedAt: String
18
- createdAt: String
19
- }
20
- `
@@ -1,13 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const NewMarketplaceProductAttribute = gql`
4
- input NewMarketplaceProductAttribute {
5
- name: String
6
- description: String
7
- attributeId: String
8
- isMandatory: Boolean
9
- attributeType: String
10
- option: String
11
- originalValue: String
12
- }
13
- `
@@ -1,28 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-product-category'
4
- export * from './marketplace-product-category-list'
5
- export * from './marketplace-product-category-patch'
6
- export * from './new-marketplace-product-category'
7
-
8
- export const MarketplaceProductCategoryResolver = gql`
9
- extend type Mutation {
10
- createMarketplaceProductCategory(
11
- marketplaceProductCategory: NewMarketplaceProductCategory!
12
- ): MarketplaceProductCategory
13
-
14
- updateMarketplaceProductCategory(name: String!, patch: MarketplaceProductCategoryPatch!): MarketplaceProductCategory
15
- updateMultipleMarketplaceProductCategory(patches: [MarketplaceProductCategoryPatch]!): [MarketplaceProductCategory]
16
- deleteMarketplaceProductCategory(name: String!): Boolean
17
- deleteMarketplaceProductCategories(names: [String]!): Boolean
18
- }
19
-
20
- extend type Query {
21
- marketplaceProductCategories(
22
- filters: [Filter]
23
- pagination: Pagination
24
- sortings: [Sorting]
25
- ): MarketplaceProductCategoryList
26
- marketplaceProductCategory(name: String!): MarketplaceProductCategory
27
- }
28
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductCategoryList = gql`
4
- type MarketplaceProductCategoryList {
5
- items: [MarketplaceProductCategory]
6
- total: Int
7
- }
8
- `
@@ -1,10 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductCategoryPatch = gql`
4
- input MarketplaceProductCategoryPatch {
5
- id: String
6
- name: String
7
- description: String
8
- cuFlag: String
9
- }
10
- `
@@ -1,17 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductCategory = gql`
4
- type MarketplaceProductCategory {
5
- id: String
6
- name: String
7
- domain: Domain
8
- marketplaceProduct: MarketplaceProduct
9
- categoryId: String
10
- childCategory: Boolean
11
- description: String
12
- updater: User
13
- creator: User
14
- updatedAt: String
15
- createdAt: String
16
- }
17
- `
@@ -1,10 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const NewMarketplaceProductCategory = gql`
4
- input NewMarketplaceProductCategory {
5
- name: String
6
- categoryId: String
7
- childCategory: Boolean
8
- description: String
9
- }
10
- `
@@ -1,47 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-product-variation'
4
- export * from './marketplace-product-variation-list'
5
- export * from './marketplace-product-variation-patch'
6
- export * from './new-marketplace-product-variation'
7
-
8
- export const MarketplaceProductVariationResolver = gql`
9
- extend type Mutation {
10
- createMarketplaceProductVariation(
11
- marketplaceProductVariation: NewMarketplaceProductVariation!
12
- ): MarketplaceProductVariation
13
-
14
- updateMarketplaceProductVariation(
15
- name: String!
16
- patch: MarketplaceProductVariationPatch!
17
- ): MarketplaceProductVariation
18
-
19
- upsertMarketplaceProductVariation(
20
- marketplaceProductVariation: MarketplaceProductVariationPatch!
21
- productInfo: MarketplaceProductPatch
22
- ): Boolean
23
-
24
- deleteMarketplaceProductVariation(name: String!): Boolean
25
- deleteMarketplaceProductVariations(names: [String]!): Boolean
26
-
27
- updateMultipleMarketplaceProductVariationQuantity(patches: [MarketplaceProductVariationPatch]!): Boolean
28
- @transaction
29
-
30
- updateMultipleMarketplaceProductVariations(patches: [MarketplaceProductVariationPatch]!): Boolean @transaction
31
-
32
- linkWarehouseMarketplaceProductVariations(
33
- marketplaceStoreId: String!
34
- sku: String!
35
- patches: [MarketplaceProductVariationPatch]!
36
- ): Boolean @transaction
37
- }
38
-
39
- extend type Query {
40
- marketplaceProductVariations(
41
- filters: [Filter]
42
- pagination: Pagination
43
- sortings: [Sorting]
44
- ): MarketplaceProductVariationList
45
- marketplaceProductVariation(name: String!): MarketplaceProductVariation
46
- }
47
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductVariationList = gql`
4
- type MarketplaceProductVariationList {
5
- items: [MarketplaceProductVariation]
6
- total: Int
7
- }
8
- `
@@ -1,32 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductVariationPatch = gql`
4
- input MarketplaceProductVariationPatch {
5
- id: String
6
- marketplaceProduct: ObjectRef
7
- marketplaceProductVariationPrices: [ObjectRef]
8
- variationId: String
9
- variationSku: String
10
- variationName: String
11
- sku: String
12
- channelSku: String
13
- name: String
14
- type: String
15
- description: String
16
- qty: Float
17
- reserveQty: Float
18
- bufferQty: Float
19
- thresholdQty: Float
20
- costPrice: Float
21
- sellPrice: Float
22
- mrpPrice: Float
23
- discountId: String
24
- status: String
25
- marketplaceStatus: String
26
- afterTaxCostPrice: Float
27
- afterTaxSalesPrice: Float
28
- primaryUnit: String
29
- primaryUnitValue: Float
30
- cuFlag: String
31
- }
32
- `
@@ -1,35 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductVariation = gql`
4
- type MarketplaceProductVariation {
5
- id: String
6
- domain: Domain
7
- sku: String
8
- marketplaceProduct: MarketplaceProduct
9
- marketplaceProductVariationPrices: [MarketplaceProductVariationPrice]
10
- variationId: String
11
- variationSku: String
12
- channelSku: String
13
- qty: Float
14
- reserveQty: Float
15
- bufferQty: Float
16
- thresholdQty: Float
17
- name: String
18
- type: String
19
- description: String
20
- costPrice: Float
21
- sellPrice: Float
22
- mrpPrice: Float
23
- discountId: String
24
- status: String
25
- marketplaceStatus: String
26
- afterTaxCostPrice: Float
27
- afterTaxSalesPrice: Float
28
- primaryUnit: String
29
- primaryUnitValue: Float
30
- updater: User
31
- creator: User
32
- updatedAt: String
33
- createdAt: String
34
- }
35
- `
@@ -1,26 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const NewMarketplaceProductVariation = gql`
4
- input NewMarketplaceProductVariation {
5
- variationId: String
6
- sku: String
7
- name: String
8
- type: String
9
- description: String
10
- variationSku: String
11
- channelSku: String
12
- qty: Float
13
- reserveQty: Float
14
- bufferQty: Float
15
- thresholdQty: Float
16
- costPrice: Float
17
- sellPrice: Float
18
- mrpPrice: Float
19
- discountId: String
20
- status: String
21
- afterTaxCostPrice: Float
22
- afterTaxSalesPrice: Float
23
- primaryUnit: String
24
- primaryUnitValue: Float
25
- }
26
- `
@@ -1,9 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const WarehouseProduct = gql`
4
- input WarehouseProduct {
5
- id: String
6
- sku: String
7
- name: String
8
- }
9
- `
@@ -1,21 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-product-variation-price'
4
- export * from './new-marketplace-product-variation-price'
5
- export * from './marketplace-product-variation-price-patch'
6
- export * from './marketplace-product-variation-price-list'
7
-
8
- export const MarketplaceProductVariationPriceResolver = gql`
9
- extend type Mutation {
10
- createMarketplaceProductVariationPrice (marketplaceProductVariationPrice: NewMarketplaceProductVariationPrice!): MarketplaceProductVariationPrice
11
- updateMarketplaceProductVariationPrice (name: String! patch: MarketplaceProductVariationPricePatch!): MarketplaceProductVariationPrice
12
- updateMultipleMarketplaceProductVariationPrice (patches: [MarketplaceProductVariationPricePatch]!): [MarketplaceProductVariationPrice]
13
- deleteMarketplaceProductVariationPrice (name: String!): Boolean
14
- deleteMarketplaceProductVariationPrices (names: [String]!): Boolean
15
- }
16
-
17
- extend type Query {
18
- marketplaceProductVariationPrices(filters: [Filter], pagination: Pagination, sortings: [Sorting]): MarketplaceProductVariationPriceList
19
- marketplaceProductVariationPrice(name: String!): MarketplaceProductVariationPrice
20
- }
21
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductVariationPriceList = gql`
4
- type MarketplaceProductVariationPriceList {
5
- items: [MarketplaceProductVariationPrice]
6
- total: Int
7
- }
8
- `
@@ -1,17 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductVariationPricePatch = gql`
4
- input MarketplaceProductVariationPricePatch {
5
- id: String
6
- name: String
7
- description: String
8
- currency: String
9
- marketplaceProductVariation: ObjectRef
10
- mrpPrice: Float
11
- costPrice: Float
12
- sellPrice: Float
13
- afterTaxCostPrice: Float
14
- afterTaxSalesPrice: Float
15
- cuFlag: String
16
- }
17
- `
@@ -1,21 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceProductVariationPrice = gql`
4
- type MarketplaceProductVariationPrice {
5
- id: String
6
- name: String
7
- domain: Domain
8
- description: String
9
- currency: String
10
- marketplaceProductVariation: MarketplaceProductVariation
11
- mrpPrice: Float
12
- costPrice: Float
13
- sellPrice: Float
14
- afterTaxCostPrice: Float
15
- afterTaxSalesPrice: Float
16
- updater: User
17
- creator: User
18
- updatedAt: String
19
- createdAt: String
20
- }
21
- `
@@ -1,14 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const NewMarketplaceProductVariationPrice = gql`
4
- input NewMarketplaceProductVariationPrice {
5
- name: String!
6
- description: String
7
- currency: String
8
- mrpPrice: Float
9
- costPrice: Float
10
- sellPrice: Float
11
- afterTaxCostPrice: Float
12
- afterTaxSalesPrice: Float
13
- }
14
- `
@@ -1,16 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-refund-order'
4
- export * from './marketplace-refund-order-list'
5
-
6
- export const MarketplaceRefundOrderResolver = gql`
7
- extend type Mutation {
8
- syncMarketplaceRefundOrders(storeId: String!, fromDate: String, toDate: String): Boolean @transaction
9
- syncAllMarketplaceRefundOrders(
10
- companyDomainId: String
11
- fromDate: String
12
- toDate: String
13
- blackListStores: [String]
14
- ): Boolean
15
- }
16
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceRefundOrderList = gql`
4
- type MarketplaceRefundOrderList {
5
- items: [MarketplaceRefundOrder]
6
- total: Int
7
- }
8
- `
@@ -1,17 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceRefundOrder = gql`
4
- type MarketplaceRefundOrder {
5
- id: String
6
- name: String
7
- domain: Domain
8
- originalOrderNo: String
9
- orderNo: String
10
- amount: Int
11
- status: String
12
- updater: User
13
- creator: User
14
- updatedAt: String
15
- createdAt: String
16
- }
17
- `
@@ -1,10 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export * from './marketplace-sales-report'
4
- export * from './marketplace-sales-report-list'
5
-
6
- export const MarketplaceReportResolver = gql`
7
- extend type Query {
8
- marketplaceSalesReports(filters: [Filter], pagination: Pagination, sortings: [Sorting]): MarketplaceSalesReportList
9
- }
10
- `
@@ -1,8 +0,0 @@
1
- import gql from 'graphql-tag'
2
-
3
- export const MarketplaceSalesReportList = gql`
4
- type MarketplaceSalesReportList {
5
- items: [MarketplaceSalesReport]
6
- total: Int
7
- }
8
- `