gap-nodejs-sdk 1.0.55 → 1.0.58
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/appointment_api/1.0.0/api/settings.d.ts +1 -0
- package/dist/appointment_api/1.0.0/api/settings.d.ts.map +1 -1
- package/dist/appointment_api/1.0.0/api/settings.js +11 -1
- package/dist/appointment_api/1.0.0/models/settings.d.ts +9 -1
- package/dist/appointment_api/1.0.0/models/settings.d.ts.map +1 -1
- package/dist/appointment_api/1.0.0/models/settings.js +16 -5
- package/dist/appointment_api/1.0.0/types/request/settings.d.ts +4 -0
- package/dist/appointment_api/1.0.0/types/request/settings.d.ts.map +1 -1
- package/dist/appointment_api/1.0.0/types/response/settings.d.ts +8 -0
- package/dist/appointment_api/1.0.0/types/response/settings.d.ts.map +1 -1
- package/dist/gap-sdk.js +1 -1
- package/dist/go_check_in_api/1.0.0/api/settings.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +1 -1
|
@@ -6,5 +6,6 @@ import * as Response from "../types/response";
|
|
|
6
6
|
export default class Settings extends Base implements SettingAbstractClass {
|
|
7
7
|
static API_VERSION: GapApiVersion;
|
|
8
8
|
static getSMSContent(data: Request.GetSMSContentRequest): Promise<Response.GetSMSContentResponse>;
|
|
9
|
+
static updateSMSContent(data: Request.UpdateSMSContentRequest): Promise<Response.UpdateSMSContentResponse>;
|
|
9
10
|
}
|
|
10
11
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/appointment_api/1.0.0/api/settings.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,oBAAoB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/appointment_api/1.0.0/api/settings.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,IAAK,YAAW,oBAAoB;IACtE,OAAc,WAAW,gBAAoB;WAEzB,aAAa,CAAC,IAAI,EAAE,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC;WAU1F,gBAAgB,CAAC,IAAI,EAAE,OAAO,CAAC,uBAAuB,GAAG,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAS1H"}
|
|
@@ -11,7 +11,17 @@ export default class Settings extends Base {
|
|
|
11
11
|
path: endpoints.settings.GET_SMS_CONTENT,
|
|
12
12
|
query: data
|
|
13
13
|
});
|
|
14
|
-
return Model.
|
|
14
|
+
return Model.GetSMSContentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
static updateSMSContent(data) {
|
|
18
|
+
var _a;
|
|
19
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
const response = yield this.client.post({
|
|
21
|
+
path: endpoints.settings.GET_SMS_CONTENT,
|
|
22
|
+
data: data
|
|
23
|
+
});
|
|
24
|
+
return Model.UpdateSMSContentModel((_a = response === null || response === void 0 ? void 0 : response.result) === null || _a === void 0 ? void 0 : _a.data);
|
|
15
25
|
});
|
|
16
26
|
}
|
|
17
27
|
}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function GetSMSContentModel(data: any): {
|
|
2
2
|
"config.appointment.content_sms.customer.canceled": any;
|
|
3
|
+
'config.appointment.content_sms.customer.confirmed': any;
|
|
3
4
|
"config.appointment.content_sms.customer.scheduled": any;
|
|
4
5
|
"config.appointment.remind_content": any;
|
|
5
6
|
"config.gocheckin.sms_for_waiting_customer_content": any;
|
|
6
7
|
};
|
|
8
|
+
export declare function UpdateSMSContentModel(data: any): {
|
|
9
|
+
key: any;
|
|
10
|
+
value: any;
|
|
11
|
+
comment: any;
|
|
12
|
+
updated_at: any;
|
|
13
|
+
created_at: any;
|
|
14
|
+
};
|
|
7
15
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/appointment_api/1.0.0/models/settings.ts"],"names":[],"mappings":"AAAA,wBAAgB,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/appointment_api/1.0.0/models/settings.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG;;;;;;EAQ3C;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG;;;;;;EAQ9C"}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
export function
|
|
2
|
-
var _a, _b, _c, _d;
|
|
1
|
+
export function GetSMSContentModel(data) {
|
|
2
|
+
var _a, _b, _c, _d, _e;
|
|
3
3
|
return {
|
|
4
4
|
"config.appointment.content_sms.customer.canceled": (_a = data["config.appointment.content_sms.customer.canceled"]) !== null && _a !== void 0 ? _a : null,
|
|
5
|
-
|
|
6
|
-
"config.appointment.
|
|
7
|
-
"config.
|
|
5
|
+
'config.appointment.content_sms.customer.confirmed': (_b = data["config.appointment.content_sms.customer.confirmed"]) !== null && _b !== void 0 ? _b : null,
|
|
6
|
+
"config.appointment.content_sms.customer.scheduled": (_c = data["config.appointment.content_sms.customer.scheduled"]) !== null && _c !== void 0 ? _c : null,
|
|
7
|
+
"config.appointment.remind_content": (_d = data["config.appointment.remind_content"]) !== null && _d !== void 0 ? _d : null,
|
|
8
|
+
"config.gocheckin.sms_for_waiting_customer_content": (_e = data["config.gocheckin.sms_for_waiting_customer_content"]) !== null && _e !== void 0 ? _e : null,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export function UpdateSMSContentModel(data) {
|
|
12
|
+
var _a, _b, _c, _d, _e;
|
|
13
|
+
return {
|
|
14
|
+
key: (_a = data === null || data === void 0 ? void 0 : data.key) !== null && _a !== void 0 ? _a : null,
|
|
15
|
+
value: (_b = data === null || data === void 0 ? void 0 : data.value) !== null && _b !== void 0 ? _b : null,
|
|
16
|
+
comment: (_c = data === null || data === void 0 ? void 0 : data.comment) !== null && _c !== void 0 ? _c : null,
|
|
17
|
+
updated_at: (_d = data === null || data === void 0 ? void 0 : data.updated_at) !== null && _d !== void 0 ? _d : null,
|
|
18
|
+
created_at: (_e = data === null || data === void 0 ? void 0 : data.created_at) !== null && _e !== void 0 ? _e : null,
|
|
8
19
|
};
|
|
9
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/appointment_api/1.0.0/types/request/settings.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB,GAAG,EAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/appointment_api/1.0.0/types/request/settings.ts"],"names":[],"mappings":"AAAA,oBAAY,oBAAoB,GAAG,EAAE,CAAA;AACrC,oBAAY,uBAAuB,GAAG;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB,CAAA"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { Nullable } from "../../../../base_type";
|
|
2
2
|
export declare type GetSMSContentResponse = Nullable<{
|
|
3
3
|
"config.appointment.content_sms.customer.canceled": string;
|
|
4
|
+
"config.appointment.content_sms.customer.confirmed": string;
|
|
4
5
|
"config.appointment.content_sms.customer.scheduled": string;
|
|
5
6
|
"config.appointment.remind_content": string;
|
|
6
7
|
"config.gocheckin.sms_for_waiting_customer_content": string;
|
|
7
8
|
}>;
|
|
9
|
+
export declare type UpdateSMSContentResponse = Nullable<{
|
|
10
|
+
key: string;
|
|
11
|
+
value: string;
|
|
12
|
+
comment: any;
|
|
13
|
+
updated_at: number;
|
|
14
|
+
created_at: number;
|
|
15
|
+
}>;
|
|
8
16
|
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/appointment_api/1.0.0/types/response/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,qBAAqB,GAAG,QAAQ,CAAC;IACzC,kDAAkD,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../../src/appointment_api/1.0.0/types/response/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAC;AAE/C,oBAAY,qBAAqB,GAAG,QAAQ,CAAC;IACzC,kDAAkD,EAAE,MAAM,CAAC;IAC3D,mDAAmD,EAAE,MAAM,CAAC;IAC5D,mDAAmD,EAAE,MAAM,CAAC;IAC5D,mCAAmC,EAAE,MAAM,CAAC;IAC5C,mDAAmD,EAAE,MAAM,CAAC;CAC/D,CAAC,CAAA;AAEF,oBAAY,wBAAwB,GAAG,QAAQ,CAAC;IAC5C,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,GAAG,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAC,CAAA"}
|