gap-nodejs-sdk 1.0.459 → 1.0.461
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/api/appointment_api/1.0.0/api/appointment.d.ts +1 -0
- package/dist/api/appointment_api/1.0.0/api/appointment.d.ts.map +1 -1
- package/dist/api/appointment_api/1.0.0/api/appointment.js +10 -9
- package/dist/api/appointment_api/1.0.0/endpoints/appointment.d.ts +1 -0
- package/dist/api/appointment_api/1.0.0/endpoints/appointment.d.ts.map +1 -1
- package/dist/api/appointment_api/1.0.0/endpoints/appointment.js +1 -1
- package/dist/api/appointment_api/1.0.0/models/appointment.d.ts +99 -0
- package/dist/api/appointment_api/1.0.0/models/appointment.d.ts.map +1 -1
- package/dist/api/appointment_api/1.0.0/models/appointment.js +27 -26
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export default class Appointment extends Base implements AppointmentAbstractClas
|
|
|
9
9
|
static getAppointmentSpecificDateList(data: Request.GetAppointmentSpecificDateListRequest): Promise<Response.GetAppointmentSpecificDateListResponse>;
|
|
10
10
|
static getAppointmentResourceList(data: Request.GetAppointmentResourceListRequest): Promise<Response.GetAppointmentResourceListResponse>;
|
|
11
11
|
static searchAppointment(data: Request.SearchAppointmentRequest): Promise<DataWithMetaResponse<Response.SearchAppointmentReponse>>;
|
|
12
|
+
static getAppointmentList(data: Request.GetAppointmentListRequest): Promise<Response.GetAppointmentListResponse>;
|
|
12
13
|
static getAppointmentDetail(data: Request.GetAppointmentDetailRequest): Promise<Response.GetAppointmentDetailResponse>;
|
|
13
14
|
static getDepositDetail(data: Request.GetDepositDetailRequest): Promise<Response.GetDepositDetailResponse>;
|
|
14
15
|
static createDeposit(data: Request.CreateDepositRequest): Promise<Response.CreateDepositResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/api/appoint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BAAoB,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;WAU3I,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WAUzG,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WAUlH,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,6BAA6B,CAAC;WASlH,6BAA6B,CAAC,IAAI,EAAE,OAAO,CAAC,oCAAoC,GAAG,OAAO,CAAC,QAAQ,CAAC,oCAAoC,CAAC;WASzI,WAAW,CAAC,IAAI,EAAE,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;WASpF,mBAAmB,CAAC,IAAI,EAAE,OAAO,CAAC,0BAA0B,GAAG,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAC;WAS5G,sBAAsB,CAAC,IAAI,EAAE,OAAO,CAAC,6BAA6B,GAAG,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAS5I"}
|
|
@@ -35,15 +35,16 @@ export default class Appointment extends Base {
|
|
|
35
35
|
return DataWithMetaModel(response, Model.AppointmentDetailModel);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
static getAppointmentList(data) {
|
|
39
|
+
var _a;
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const response = yield this.client.get({
|
|
42
|
+
path: appointment.GET_APPOINTMENT_LIST_BOOKING,
|
|
43
|
+
query: data
|
|
44
|
+
});
|
|
45
|
+
return (((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data) || []).map((item) => Model.AppointmentListModel(item));
|
|
46
|
+
});
|
|
47
|
+
}
|
|
47
48
|
static getAppointmentDetail(data) {
|
|
48
49
|
var _a;
|
|
49
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/appointment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/endpoints/appointment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wBAqBC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
GET_APPOINTMENT_SPECIFIC_DATE_LIST: "/v1/appointment/appointment/list/specific-date",
|
|
3
3
|
GET_APPOINTMENT_RESOURCE_LIST: "/v1/appointment/appointment/list/resource",
|
|
4
|
-
|
|
4
|
+
GET_APPOINTMENT_LIST_BOOKING: "/v1/appointment/appointment/list/all",
|
|
5
5
|
GET_APPOINTMENT_DETAIL: "/v1/appointment/appointment/list/detail",
|
|
6
6
|
CHANGE_APPOINTMENT_STATUS: "/v1/appointment/appointment/form/change-status",
|
|
7
7
|
CREATE_APPOINTMENT: "/v1/appointment/appointment/form/create",
|
|
@@ -108,6 +108,105 @@ export declare function AppointmentResourceModel(data: any): {
|
|
|
108
108
|
image_url: any;
|
|
109
109
|
status: any;
|
|
110
110
|
};
|
|
111
|
+
export declare function AppointmentListModel(data: any): {
|
|
112
|
+
id: any;
|
|
113
|
+
resourceId: any;
|
|
114
|
+
backgroundColor: any;
|
|
115
|
+
borderColor: any;
|
|
116
|
+
rendering: any;
|
|
117
|
+
note: any;
|
|
118
|
+
start: any;
|
|
119
|
+
end: any;
|
|
120
|
+
title: any;
|
|
121
|
+
overlap: any;
|
|
122
|
+
is_auto_assign: any;
|
|
123
|
+
service_id: any;
|
|
124
|
+
child_appointment_id: any;
|
|
125
|
+
checkin_id: any;
|
|
126
|
+
order_id: any;
|
|
127
|
+
status: any;
|
|
128
|
+
customer: {
|
|
129
|
+
id: any;
|
|
130
|
+
first_name: any;
|
|
131
|
+
last_name: any;
|
|
132
|
+
full_name: any;
|
|
133
|
+
phone: any;
|
|
134
|
+
email: any;
|
|
135
|
+
address: any;
|
|
136
|
+
city: any;
|
|
137
|
+
state: any;
|
|
138
|
+
country: any;
|
|
139
|
+
gender: any;
|
|
140
|
+
birthday: any;
|
|
141
|
+
create_at: any;
|
|
142
|
+
update_at: any;
|
|
143
|
+
status: any;
|
|
144
|
+
group_id: any;
|
|
145
|
+
note: any;
|
|
146
|
+
parent_id: any;
|
|
147
|
+
rating: any;
|
|
148
|
+
is_yelp: any;
|
|
149
|
+
reachable_email: any;
|
|
150
|
+
reachable_push: any;
|
|
151
|
+
reachable_sms: any;
|
|
152
|
+
visit_count: any;
|
|
153
|
+
last_visited: any;
|
|
154
|
+
image_url: any;
|
|
155
|
+
address2: any;
|
|
156
|
+
postal_code: any;
|
|
157
|
+
is_send_sms: any;
|
|
158
|
+
is_import: any;
|
|
159
|
+
is_checked_in: any;
|
|
160
|
+
current_point: any;
|
|
161
|
+
lifetime_point: any;
|
|
162
|
+
type: any;
|
|
163
|
+
};
|
|
164
|
+
staff: {
|
|
165
|
+
user_id: any;
|
|
166
|
+
name: any;
|
|
167
|
+
code: any;
|
|
168
|
+
created_at: any;
|
|
169
|
+
updated_at: any;
|
|
170
|
+
color_code: any;
|
|
171
|
+
image_url: any;
|
|
172
|
+
delete_image_url: any;
|
|
173
|
+
priority: any;
|
|
174
|
+
commission_type: any;
|
|
175
|
+
turn_priority: any;
|
|
176
|
+
last_turn_priority: any;
|
|
177
|
+
phone: any;
|
|
178
|
+
address: any;
|
|
179
|
+
nickname: any;
|
|
180
|
+
priority_calendar: any;
|
|
181
|
+
};
|
|
182
|
+
services: {
|
|
183
|
+
id: any;
|
|
184
|
+
name: any;
|
|
185
|
+
create_at: any;
|
|
186
|
+
type: any;
|
|
187
|
+
status: any;
|
|
188
|
+
group_id: any;
|
|
189
|
+
priority: any;
|
|
190
|
+
category_id: any;
|
|
191
|
+
onwer_id: any;
|
|
192
|
+
price: any;
|
|
193
|
+
note: any;
|
|
194
|
+
point_bonus: any;
|
|
195
|
+
duration: any;
|
|
196
|
+
buffer_time: any;
|
|
197
|
+
web_booking_visible: any;
|
|
198
|
+
supply_share: any;
|
|
199
|
+
show_on_checkin: any;
|
|
200
|
+
show_on_booking: any;
|
|
201
|
+
show_on_pos: any;
|
|
202
|
+
image_base_url: any;
|
|
203
|
+
image_path: any;
|
|
204
|
+
employee_list: any;
|
|
205
|
+
};
|
|
206
|
+
customer_type: any;
|
|
207
|
+
custom_service: any;
|
|
208
|
+
extra_data: any;
|
|
209
|
+
};
|
|
111
210
|
export declare function AppointmentDetailModel(data: any): Response.GetAppointmentDetailResponse;
|
|
112
211
|
export declare function DepositDetailModel(data: any): Response.GetDepositDetailResponse;
|
|
113
212
|
export declare function BusinessTimeOffModel(data: any): Response.GetListBusinessTimeOffResponse;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/models/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AA+O9C,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBrD;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,iCAAiC,CAmCpG;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG;;;;;;;;EAgBjD;
|
|
1
|
+
{"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../../../../src/api/appointment_api/1.0.0/models/appointment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AA+O9C,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBrD;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,iCAAiC,CAmCpG;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG;;;;;;;;EAgBjD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyB7C;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CA4BvF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,wBAAwB,CA4D/E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,8BAA8B,CAkBvF;AA4FD,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,oCAAoC,CAWxG;AAED,eAAO,MAAM,wBAAwB,SAAW,GAAG;;CAIlD,CAAA"}
|
|
@@ -317,32 +317,33 @@ export function AppointmentResourceModel(data) {
|
|
|
317
317
|
status: (_f = data === null || data === void 0 ? void 0 : data.status) !== null && _f !== void 0 ? _f : null,
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
320
|
+
export function AppointmentListModel(data) {
|
|
321
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
322
|
+
return {
|
|
323
|
+
id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
|
|
324
|
+
resourceId: (_b = data === null || data === void 0 ? void 0 : data.resourceId) !== null && _b !== void 0 ? _b : null,
|
|
325
|
+
backgroundColor: (_c = data === null || data === void 0 ? void 0 : data.backgroundColor) !== null && _c !== void 0 ? _c : null,
|
|
326
|
+
borderColor: (_d = data === null || data === void 0 ? void 0 : data.borderColor) !== null && _d !== void 0 ? _d : null,
|
|
327
|
+
rendering: (_e = data === null || data === void 0 ? void 0 : data.rendering) !== null && _e !== void 0 ? _e : null,
|
|
328
|
+
note: (_f = data === null || data === void 0 ? void 0 : data.note) !== null && _f !== void 0 ? _f : null,
|
|
329
|
+
start: (_g = data === null || data === void 0 ? void 0 : data.start) !== null && _g !== void 0 ? _g : null,
|
|
330
|
+
end: (_h = data === null || data === void 0 ? void 0 : data.end) !== null && _h !== void 0 ? _h : null,
|
|
331
|
+
title: (_j = data === null || data === void 0 ? void 0 : data.title) !== null && _j !== void 0 ? _j : null,
|
|
332
|
+
overlap: (_k = data === null || data === void 0 ? void 0 : data.overlap) !== null && _k !== void 0 ? _k : null,
|
|
333
|
+
is_auto_assign: (_l = data === null || data === void 0 ? void 0 : data.is_auto_assign) !== null && _l !== void 0 ? _l : null,
|
|
334
|
+
service_id: (_m = data === null || data === void 0 ? void 0 : data.service_id) !== null && _m !== void 0 ? _m : null,
|
|
335
|
+
child_appointment_id: (_o = data === null || data === void 0 ? void 0 : data.child_appointment_id) !== null && _o !== void 0 ? _o : null,
|
|
336
|
+
checkin_id: (_p = data === null || data === void 0 ? void 0 : data.checkin_id) !== null && _p !== void 0 ? _p : null,
|
|
337
|
+
order_id: (_q = data === null || data === void 0 ? void 0 : data.order_id) !== null && _q !== void 0 ? _q : null,
|
|
338
|
+
status: (_r = data === null || data === void 0 ? void 0 : data.status) !== null && _r !== void 0 ? _r : null,
|
|
339
|
+
customer: CustomerModel(data === null || data === void 0 ? void 0 : data.customer),
|
|
340
|
+
staff: StaffModel(data === null || data === void 0 ? void 0 : data.staff),
|
|
341
|
+
services: ServiceModel(data === null || data === void 0 ? void 0 : data.services),
|
|
342
|
+
customer_type: (_s = data === null || data === void 0 ? void 0 : data.customer_type) !== null && _s !== void 0 ? _s : null,
|
|
343
|
+
custom_service: (_t = data === null || data === void 0 ? void 0 : data.custom_service) !== null && _t !== void 0 ? _t : null,
|
|
344
|
+
extra_data: (_u = data === null || data === void 0 ? void 0 : data.extra_data) !== null && _u !== void 0 ? _u : null,
|
|
345
|
+
};
|
|
346
|
+
}
|
|
346
347
|
export function AppointmentDetailModel(data) {
|
|
347
348
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
348
349
|
return {
|