gap-nodejs-sdk 1.0.359 → 1.0.360
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.
|
@@ -3,6 +3,7 @@ import Base from "../../../../base/Base";
|
|
|
3
3
|
import { GapApiVersion } from "../../../../base_type";
|
|
4
4
|
import * as Request from "../types/request";
|
|
5
5
|
import * as Response from "../types/response";
|
|
6
|
+
import { DataWithMetaResponse } from "../../../../types";
|
|
6
7
|
export default class Checkin extends Base implements CategoryAbstractClass {
|
|
7
8
|
static API_VERSION: GapApiVersion;
|
|
8
9
|
static getCheckinList(query: Request.GetCheckinListRequest): Promise<Response.GetCheckinListResponse>;
|
|
@@ -14,6 +15,6 @@ export default class Checkin extends Base implements CategoryAbstractClass {
|
|
|
14
15
|
static postCheckOutFormSubmit(data: Request.PostCheckOutFormSubmitRequest): Promise<Response.GetCheckinListResponse>;
|
|
15
16
|
static updateCustomerNote(data: Request.UpdateCustomerNoteRequest): Promise<Response.UpdateCustomerNoteResponse>;
|
|
16
17
|
static getCheckoutHistorySumary(query: Request.GetCheckoutHistorySumaryRequest): Promise<Response.GetCheckoutHistorySumaryResponse>;
|
|
17
|
-
static getCheckoutHistory(query
|
|
18
|
+
static getCheckoutHistory(query?: Request.GetCheckoutHistoryRequest): Promise<DataWithMetaResponse<Response.GetCheckinListResponse>>;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=checkin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkin.d.ts","sourceRoot":"","sources":["../../../../../src/api/go_check_in_api/1.0.0/api/checkin.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,IAAI,MAAM,uBAAuB,CAAC;AACzC,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,m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,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC;WASzG,wBAAwB,CAAC,KAAK,EAAE,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,QAAQ,CAAC,gCAAgC,CAAC;WAS5H,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CASpJ"}
|
|
@@ -4,6 +4,7 @@ import Base from "../../../../base/Base";
|
|
|
4
4
|
import { GapApiVersion } from "../../../../base_type";
|
|
5
5
|
import * as Model from "../models";
|
|
6
6
|
import { objectToFormData } from "../../../../utils/form-data";
|
|
7
|
+
import { DataWithMetaModel } from "../../../../models";
|
|
7
8
|
export default class Checkin extends Base {
|
|
8
9
|
static getCheckinList(query) {
|
|
9
10
|
var _a, _b;
|
|
@@ -97,13 +98,12 @@ export default class Checkin extends Base {
|
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
100
|
static getCheckoutHistory(query) {
|
|
100
|
-
var _a, _b;
|
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
102
102
|
const response = yield this.client.get({
|
|
103
103
|
path: checkin.GET_CHECKOUT_HISTORY,
|
|
104
104
|
query: query
|
|
105
105
|
});
|
|
106
|
-
return (
|
|
106
|
+
return DataWithMetaModel(response, Model.CheckinListModel);
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
}
|