gap-nodejs-sdk 1.0.241 → 1.0.242

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.
@@ -104,7 +104,11 @@ export declare function AppointmentResourceModel(data: any): {
104
104
  title: any;
105
105
  index: any;
106
106
  color_code: any;
107
- businessHours: any;
107
+ businessHours: {
108
+ daysOfWeek: any;
109
+ startTime: any;
110
+ endTime: any;
111
+ }[];
108
112
  image_url: any;
109
113
  };
110
114
  export declare function AppointmentDetailModel(data: any): Response.GetAppointmentDetailResponse;
@@ -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;;;;;;;EASjD;AA6BD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CA4BvF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,8BAA8B,CAkBvF"}
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;;;;;;;;;;;EAajD;AA6BD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,4BAA4B,CA4BvF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAAC,8BAA8B,CAkBvF"}
@@ -300,12 +300,16 @@ export function DragDropUpdateAppointmentModel(data) {
300
300
  }
301
301
  export function AppointmentResourceModel(data) {
302
302
  var _a, _b, _c, _d, _e;
303
+ let businessHours = [];
304
+ if (Array.isArray(data === null || data === void 0 ? void 0 : data.businessHours)) {
305
+ businessHours = data === null || data === void 0 ? void 0 : data.businessHours;
306
+ }
303
307
  return {
304
308
  id: (_a = data === null || data === void 0 ? void 0 : data.id) !== null && _a !== void 0 ? _a : null,
305
309
  title: (_b = data === null || data === void 0 ? void 0 : data.title) !== null && _b !== void 0 ? _b : null,
306
310
  index: (_c = data === null || data === void 0 ? void 0 : data.index) !== null && _c !== void 0 ? _c : null,
307
311
  color_code: (_d = data === null || data === void 0 ? void 0 : data.color_code) !== null && _d !== void 0 ? _d : null,
308
- businessHours: ((data === null || data === void 0 ? void 0 : data.businessHours) || []).map((item) => BusinessHourModel(item)),
312
+ businessHours: businessHours.map((item) => BusinessHourModel(item)),
309
313
  image_url: (_e = data === null || data === void 0 ? void 0 : data.image_url) !== null && _e !== void 0 ? _e : null
310
314
  };
311
315
  }