@longvansoftware/storefront-js-client 4.8.1 → 4.8.3

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.
@@ -55,7 +55,6 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
55
55
  size
56
56
  empty
57
57
  content {
58
- campaignActionId
59
58
  campaignId
60
59
  partyId
61
60
  voucherCode
@@ -63,8 +62,12 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
63
62
  status
64
63
  discountAmount
65
64
  discountPercent
65
+ discountType
66
66
  usageLimitPerVoucher
67
67
  maximumDiscount
68
+ maximumDiscountType
69
+ minimumSpend
70
+ maximumSpend
68
71
  numberOfTimeUsed
69
72
  id
70
73
  createdStamp
@@ -73,6 +76,16 @@ exports.GET_VOUCHERS = (0, graphql_tag_1.gql) `
73
76
  createdBy
74
77
  isBirthday
75
78
  customerId
79
+ scope
80
+ affiliateId
81
+ description
82
+ expiryDate
83
+ customAttribute
84
+ assignUserLimit
85
+ ownerPartyId
86
+ migratedFromReferralId
87
+ campaignActionId
88
+ discountValue
76
89
  }
77
90
  }
78
91
  }
@@ -251,25 +251,30 @@ class CampaignService extends serviceSDK_1.Service {
251
251
  voucherForUserRequest(orderId_1) {
252
252
  return __awaiter(this, arguments, void 0, function* (orderId, customerId = "", paymentMethodId, shippingCompanyId, pageNumber = 0, pageSize = 20, fields = [
253
253
  `content {
254
- id
255
- voucherCode
256
- voucherType
257
- isBirthday
258
- discountAmount
259
- discountPercent
260
- usageLimitPerVoucher
261
- numberOfTimeUsed
262
- maximumDiscount
263
- memberLevel
264
- affiliateId
265
- description
266
- usageLimitType
267
- minimumSpend
268
- maximumSpend
269
- expiryDate
270
- isUsable
271
- unusableReasons
272
- remainingAmount
254
+ id
255
+ voucherCode
256
+ isBirthday
257
+ discountAmount
258
+ discountPercent
259
+ usageLimitPerVoucher
260
+ numberOfTimeUsed
261
+ maximumDiscount
262
+ maximumDiscountType
263
+ memberLevel
264
+ affiliateId
265
+ description
266
+ usageLimitType
267
+ minimumSpend
268
+ maximumSpend
269
+ expiryDate
270
+ isUsable
271
+ unusableReasons
272
+ remainingAmount
273
+ discountType
274
+ discountValue
275
+ ownerPartyId
276
+ rewardType
277
+ voucherType
273
278
  }`,
274
279
  "total",
275
280
  "pageNumber",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longvansoftware/storefront-js-client",
3
- "version": "4.8.1",
3
+ "version": "4.8.3",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "files": [
@@ -1 +0,0 @@
1
- export declare const SEARCH_SERVICE: import("graphql").DocumentNode;
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SEARCH_SERVICE = void 0;
4
- const graphql_tag_1 = require("graphql-tag");
5
- exports.SEARCH_SERVICE = (0, graphql_tag_1.gql) `
6
- query SearchService($filter: CloudServiceFilterInput) {
7
- searchService(filter: $filter) {
8
- total
9
- offset
10
- maxResult
11
- resultList {
12
- supplierId
13
- serviceId
14
- partnerId
15
- serviceName
16
- type
17
- typeName
18
- status
19
- statusFulfillment
20
- ownerId
21
- startDate
22
- endDate
23
- serviceType
24
- urlPrivate
25
- urlPublic
26
- username
27
- password
28
- attrs
29
- description
30
- productGroupId
31
- orderId
32
- actionRequest {
33
- id
34
- name
35
- uri
36
- type
37
- }
38
- billingCycle {
39
- quantity
40
- unit
41
- }
42
- productConfiguration {
43
- productId
44
- productTitle
45
- productResources {
46
- name
47
- quantity
48
- unit
49
- productId
50
- giftProductId
51
- gift
52
- giftQuantity
53
- campaignId
54
- campaignActionId
55
- qualify
56
- idParent
57
- addQuantity
58
- defaultQuantity
59
- title
60
- price
61
- unitPrice
62
- totalResource
63
- unitGift
64
- giftDuration
65
- giftDurationUnit
66
- }
67
- }
68
- }
69
- }
70
- }
71
- `;
@@ -1,5 +0,0 @@
1
- import { Service } from "../serviceSDK";
2
- export declare class CloudServiceService extends Service {
3
- constructor(endpoint: string, orgId: string, storeId: string);
4
- searchService(data: any): Promise<any>;
5
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CloudServiceService = void 0;
13
- const serviceSDK_1 = require("../serviceSDK");
14
- const queries_1 = require("../../graphql/cloudService/queries");
15
- class CloudServiceService extends serviceSDK_1.Service {
16
- constructor(endpoint, orgId, storeId) {
17
- super(endpoint, orgId, storeId);
18
- }
19
- searchService(data) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = queries_1.SEARCH_SERVICE;
22
- const variables = {
23
- filter: data,
24
- };
25
- try {
26
- const response = yield this.graphqlQueryV4(query, variables);
27
- return response.searchService;
28
- }
29
- catch (error) {
30
- throw error;
31
- }
32
- });
33
- }
34
- }
35
- exports.CloudServiceService = CloudServiceService;