starta.apiclient 1.37.2832 → 1.37.2853
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/lib/services/organizations/customers/index.d.ts +4 -2
- package/lib/services/organizations/customers/index.js +4 -2
- package/lib/services/organizations/orders.d.ts +2 -1
- package/lib/services/organizations/orders.js +2 -1
- package/lib/services/organizations/worklogs.d.ts +2 -2
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export default class Customers {
|
|
|
11
11
|
}): Promise<import("../../../types").StartaResponse>;
|
|
12
12
|
get(organizationLogin: any, customerId: any): Promise<import("../../../types").StartaResponse>;
|
|
13
13
|
orders(organizationLogin: any, customerId: any): Promise<import("../../../types").StartaResponse>;
|
|
14
|
-
add(organizationLogin: any, { login, type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, profitBeforeStarta, numberOfOrdersBeforeStarta, }: {
|
|
14
|
+
add(organizationLogin: any, { login, type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, discountType, profitBeforeStarta, numberOfOrdersBeforeStarta, }: {
|
|
15
15
|
login: any;
|
|
16
16
|
type: 'client';
|
|
17
17
|
email: any;
|
|
@@ -28,10 +28,11 @@ export default class Customers {
|
|
|
28
28
|
dateOfBirth?: any;
|
|
29
29
|
language: any;
|
|
30
30
|
discount?: any;
|
|
31
|
+
discountType?: 'relative' | 'absolute';
|
|
31
32
|
profitBeforeStarta?: any;
|
|
32
33
|
numberOfOrdersBeforeStarta?: any;
|
|
33
34
|
}): Promise<import("../../../types").StartaResponse>;
|
|
34
|
-
update(organizationLogin: any, customerId: any, { type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, profitBeforeStarta, numberOfOrdersBeforeStarta, }: {
|
|
35
|
+
update(organizationLogin: any, customerId: any, { type, email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, discountType, profitBeforeStarta, numberOfOrdersBeforeStarta, }: {
|
|
35
36
|
type: 'client';
|
|
36
37
|
email: any;
|
|
37
38
|
phone: any;
|
|
@@ -47,6 +48,7 @@ export default class Customers {
|
|
|
47
48
|
dateOfBirth?: any;
|
|
48
49
|
language: any;
|
|
49
50
|
discount?: any;
|
|
51
|
+
discountType?: 'relative' | 'absolute';
|
|
50
52
|
profitBeforeStarta?: any;
|
|
51
53
|
numberOfOrdersBeforeStarta?: any;
|
|
52
54
|
}): Promise<import("../../../types").StartaResponse>;
|
|
@@ -31,7 +31,7 @@ class Customers {
|
|
|
31
31
|
method: 'GET',
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
add(organizationLogin, { login, type = 'client', email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, profitBeforeStarta, numberOfOrdersBeforeStarta, }) {
|
|
34
|
+
add(organizationLogin, { login, type = 'client', email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, discountType, profitBeforeStarta, numberOfOrdersBeforeStarta, }) {
|
|
35
35
|
return this._requestRunner.performRequest({
|
|
36
36
|
url: `accounts/${organizationLogin}/customers`,
|
|
37
37
|
method: 'POST',
|
|
@@ -52,12 +52,13 @@ class Customers {
|
|
|
52
52
|
dateOfBirth,
|
|
53
53
|
language,
|
|
54
54
|
discount,
|
|
55
|
+
discountType,
|
|
55
56
|
profitBeforeStarta,
|
|
56
57
|
numberOfOrdersBeforeStarta,
|
|
57
58
|
},
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
|
-
update(organizationLogin, customerId, { type = 'client', email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, profitBeforeStarta, numberOfOrdersBeforeStarta, }) {
|
|
61
|
+
update(organizationLogin, customerId, { type = 'client', email, phone, firstName, lastName, countryIso2, region, province, zip, city, addressLine1, addressLine2, dateOfBirth, language, discount, discountType, profitBeforeStarta, numberOfOrdersBeforeStarta, }) {
|
|
61
62
|
return this._requestRunner.performRequest({
|
|
62
63
|
url: `accounts/${organizationLogin}/customers/${customerId}`,
|
|
63
64
|
method: 'PUT',
|
|
@@ -77,6 +78,7 @@ class Customers {
|
|
|
77
78
|
dateOfBirth,
|
|
78
79
|
language,
|
|
79
80
|
discount,
|
|
81
|
+
discountType,
|
|
80
82
|
profitBeforeStarta,
|
|
81
83
|
numberOfOrdersBeforeStarta,
|
|
82
84
|
},
|
|
@@ -41,7 +41,7 @@ export default class Orders {
|
|
|
41
41
|
status?: OrderStatus;
|
|
42
42
|
repeatSettings?: OrderRepeatSettings;
|
|
43
43
|
}): Promise<import("../../types").StartaResponse>;
|
|
44
|
-
update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, price, duration, scheduleId, status, repeatSettings }: {
|
|
44
|
+
update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, price, duration, scheduleId, status, repeatSettings, discountType }: {
|
|
45
45
|
product: {
|
|
46
46
|
type: any;
|
|
47
47
|
id: any;
|
|
@@ -54,6 +54,7 @@ export default class Orders {
|
|
|
54
54
|
scheduleId?: any;
|
|
55
55
|
status?: OrderStatus;
|
|
56
56
|
repeatSettings?: OrderRepeatSettings;
|
|
57
|
+
discountType?: 'relative' | 'absolute';
|
|
57
58
|
}): Promise<import("../../types").StartaResponse>;
|
|
58
59
|
delete(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
59
60
|
setConfirmation(organizationOrCustomerLogin: any, orderId: any, { isConfirmed }: {
|
|
@@ -57,7 +57,7 @@ class Orders {
|
|
|
57
57
|
},
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
update(organizationLogin, orderId, { product: { type, id, executor }, starttime, endtime, price, duration, scheduleId, status, repeatSettings }) {
|
|
60
|
+
update(organizationLogin, orderId, { product: { type, id, executor }, starttime, endtime, price, duration, scheduleId, status, repeatSettings, discountType }) {
|
|
61
61
|
return this._requestRunner.performRequest({
|
|
62
62
|
url: `accounts/${organizationLogin}/orders/${orderId}`,
|
|
63
63
|
method: 'PUT',
|
|
@@ -70,6 +70,7 @@ class Orders {
|
|
|
70
70
|
scheduleId,
|
|
71
71
|
status,
|
|
72
72
|
repeatSettings,
|
|
73
|
+
discountType,
|
|
73
74
|
},
|
|
74
75
|
});
|
|
75
76
|
}
|
|
@@ -4,14 +4,14 @@ export default class Worklogs {
|
|
|
4
4
|
constructor(requestRunner: StartaRequestRunner);
|
|
5
5
|
index(organizationLogin: any, { memberLogin, type }: {
|
|
6
6
|
memberLogin?: string;
|
|
7
|
-
type: 'holiday' | 'vacation';
|
|
7
|
+
type: 'holiday' | 'vacation' | 'lock';
|
|
8
8
|
}): Promise<import("../../types").StartaResponse>;
|
|
9
9
|
add(organizationLogin: any, { memberLogin, worklogName, start, end, type }: {
|
|
10
10
|
memberLogin?: string;
|
|
11
11
|
worklogName?: string;
|
|
12
12
|
start: string;
|
|
13
13
|
end: string;
|
|
14
|
-
type: 'holiday' | 'vacation';
|
|
14
|
+
type: 'holiday' | 'vacation' | 'lock';
|
|
15
15
|
}): Promise<import("../../types").StartaResponse>;
|
|
16
16
|
delete(organizationLogin: any, worklogid: any): Promise<import("../../types").StartaResponse>;
|
|
17
17
|
}
|