@pax2pay/client 0.1.7 → 0.1.10
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/Client/Cards/index.ts +33 -0
- package/Client/Categories/index.ts +13 -0
- package/Client/Email/index.ts +14 -0
- package/Client/Users/index.ts +3 -0
- package/Client/index.ts +6 -0
- package/dist/Client/Cards/index.d.ts +15 -0
- package/dist/Client/Cards/index.js +25 -0
- package/dist/Client/Cards/index.js.map +1 -1
- package/dist/Client/Categories/index.d.ts +11 -0
- package/dist/Client/Categories/index.js +14 -0
- package/dist/Client/Categories/index.js.map +1 -0
- package/dist/Client/Email/index.d.ts +11 -0
- package/dist/Client/Email/index.js +14 -0
- package/dist/Client/Email/index.js.map +1 -0
- package/dist/Client/Users/index.d.ts +1 -0
- package/dist/Client/Users/index.js +3 -0
- package/dist/Client/Users/index.js.map +1 -1
- package/dist/Client/index.d.ts +6 -0
- package/dist/Client/index.js +4 -0
- package/dist/Client/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/AgentBookingInfo.d.ts +3 -0
- package/dist/model/AgentBookingInfo.js +11 -1
- package/dist/model/AgentBookingInfo.js.map +1 -1
- package/dist/model/BookedProductInfo.d.ts +3 -0
- package/dist/model/BookedProductInfo.js +12 -1
- package/dist/model/BookedProductInfo.js.map +1 -1
- package/dist/model/BookingInfo.d.ts +3 -0
- package/dist/model/BookingInfo.js +26 -1
- package/dist/model/BookingInfo.js.map +1 -1
- package/dist/model/CardForm.d.ts +5 -0
- package/dist/model/CardForm.js +9 -0
- package/dist/model/CardForm.js.map +1 -0
- package/dist/model/CardResponse.d.ts +7 -2
- package/dist/model/CardResponse.js +46 -1
- package/dist/model/CardResponse.js.map +1 -1
- package/dist/model/CardResponseV2.d.ts +3 -1
- package/dist/model/CardResponseV2.js +3 -1
- package/dist/model/CardResponseV2.js.map +1 -1
- package/dist/model/CategoryFundingAccountAccessRequest.d.ts +5 -0
- package/dist/model/CategoryFundingAccountAccessRequest.js +2 -0
- package/dist/model/CategoryFundingAccountAccessRequest.js.map +1 -0
- package/dist/model/CategoryLimitResponse.d.ts +5 -0
- package/dist/model/CategoryLimitResponse.js +2 -0
- package/dist/model/CategoryLimitResponse.js.map +1 -0
- package/dist/model/CategoryResponse.d.ts +9 -0
- package/dist/model/CategoryResponse.js +2 -0
- package/dist/model/CategoryResponse.js.map +1 -0
- package/dist/model/CategoryStatus.d.ts +1 -0
- package/dist/model/CategoryStatus.js +2 -0
- package/dist/model/CategoryStatus.js.map +1 -0
- package/dist/model/Criteria.d.ts +2 -1
- package/dist/model/EmailValidationResponse.d.ts +9 -0
- package/dist/model/EmailValidationResponse.js +12 -0
- package/dist/model/EmailValidationResponse.js.map +1 -0
- package/dist/model/InvokingSystem.d.ts +5 -0
- package/dist/model/InvokingSystem.js +20 -0
- package/dist/model/InvokingSystem.js.map +1 -0
- package/dist/model/LoginResponse.d.ts +2 -1
- package/dist/model/LoginResponse.js +2 -10
- package/dist/model/LoginResponse.js.map +1 -1
- package/dist/model/SupplierBookingInfo.d.ts +3 -0
- package/dist/model/SupplierBookingInfo.js +9 -1
- package/dist/model/SupplierBookingInfo.js.map +1 -1
- package/dist/model/TravelPartyInfo.d.ts +3 -0
- package/dist/model/TravelPartyInfo.js +11 -1
- package/dist/model/TravelPartyInfo.js.map +1 -1
- package/dist/model/UserChangeRequest.d.ts +2 -1
- package/dist/model/UserLimitsRequest.d.ts +3 -0
- package/dist/model/UserLimitsRequest.js +10 -1
- package/dist/model/UserLimitsRequest.js.map +1 -1
- package/dist/model/UserRequest.d.ts +5 -1
- package/dist/model/UserRequest.js +20 -1
- package/dist/model/UserRequest.js.map +1 -1
- package/dist/model/UserResponse.d.ts +2 -1
- package/dist/model/UserResponse.js +2 -5
- package/dist/model/UserResponse.js.map +1 -1
- package/dist/model/UserStatus.d.ts +5 -0
- package/dist/model/UserStatus.js +9 -0
- package/dist/model/UserStatus.js.map +1 -0
- package/dist/model/UsernameAvailabilityResponse.d.ts +9 -0
- package/dist/model/UsernameAvailabilityResponse.js +12 -0
- package/dist/model/UsernameAvailabilityResponse.js.map +1 -0
- package/dist/model/index.d.ts +10 -1
- package/dist/model/index.js +14 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +18 -0
- package/model/AgentBookingInfo.ts +12 -0
- package/model/BookedProductInfo.ts +13 -0
- package/model/BookingInfo.ts +23 -0
- package/model/CardForm.ts +9 -0
- package/model/CardResponse.ts +40 -12
- package/model/CardResponseV2.ts +5 -2
- package/model/CategoryFundingAccountAccessRequest.ts +6 -0
- package/model/CategoryLimitResponse.ts +6 -0
- package/model/CategoryResponse.ts +10 -0
- package/model/CategoryStatus.ts +1 -0
- package/model/Criteria.ts +3 -12
- package/model/EmailValidationResponse.ts +18 -0
- package/model/InvokingSystem.ts +20 -0
- package/model/LoginResponse.ts +3 -21
- package/model/SupplierBookingInfo.ts +10 -0
- package/model/TravelPartyInfo.ts +12 -0
- package/model/UserChangeRequest.ts +2 -1
- package/model/UserLimitsRequest.ts +10 -0
- package/model/UserRequest.ts +21 -1
- package/model/UserResponse.ts +3 -6
- package/model/UserStatus.ts +9 -0
- package/model/UsernameAvailabilityResponse.ts +18 -0
- package/model/index.ts +18 -0
- package/package.json +1 -1
|
@@ -1,2 +1,47 @@
|
|
|
1
|
-
|
|
1
|
+
import { AccountResponse } from "./AccountResponse";
|
|
2
|
+
import { AccountState } from "./AccountState";
|
|
3
|
+
import { BookingInfo } from "./BookingInfo";
|
|
4
|
+
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
5
|
+
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
6
|
+
import { CardForm } from "./CardForm";
|
|
7
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
8
|
+
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
9
|
+
import { CardUsage } from "./CardUsage";
|
|
10
|
+
import { InvokingSystem } from "./InvokingSystem";
|
|
11
|
+
import { ProviderCode } from "./ProviderCode";
|
|
12
|
+
export var CardResponse;
|
|
13
|
+
(function (CardResponse) {
|
|
14
|
+
function is(value) {
|
|
15
|
+
return (typeof value == "object" &&
|
|
16
|
+
(value.cardType == undefined || CardTypeSpecification.is(value.cardType) || typeof value.cardType == "string") &&
|
|
17
|
+
(value.useAs == undefined || typeof value.useAs == "string") &&
|
|
18
|
+
(value.nameOnCard == undefined || typeof value.nameOnCard == "string") &&
|
|
19
|
+
(value.cardNumber == undefined || typeof value.cardNumber == "string") &&
|
|
20
|
+
(value.cvv == undefined || typeof value.cvv == "string") &&
|
|
21
|
+
(value.issueDate == undefined || typeof value.issueDate == "string") &&
|
|
22
|
+
(value.expiryDate == undefined || typeof value.expiryDate == "string") &&
|
|
23
|
+
(value.cardForm == undefined || CardForm.is(value.cardForm)) &&
|
|
24
|
+
(value.fundingDate == undefined || typeof value.fundingDate == "string") &&
|
|
25
|
+
(value.fundingBalance == undefined || typeof value.fundingBalance == "number") &&
|
|
26
|
+
(value.balance == undefined || typeof value.balance == "number") &&
|
|
27
|
+
(value.remainingBalance == undefined || typeof value.remainingBalance == "number") &&
|
|
28
|
+
(value.notes == undefined || typeof value.notes == "string") &&
|
|
29
|
+
(value.usage == undefined || CardUsage.is(value.usage)) &&
|
|
30
|
+
(value.state == undefined || AccountState.is(value.state)) &&
|
|
31
|
+
(value.providerCode == undefined || ProviderCode.is(value.providerCode)) &&
|
|
32
|
+
(value.providerCardId == undefined || typeof value.providerCardId == "string") &&
|
|
33
|
+
(value.cardAccount == undefined || AccountResponse.is(value.cardAccount)) &&
|
|
34
|
+
(value.fundingAccount == undefined || AccountResponse.is(value.fundingAccount)) &&
|
|
35
|
+
(value.creatingSystem == undefined || InvokingSystem.is(value.creatingSystem)) &&
|
|
36
|
+
(value.createdBy == undefined || typeof value.createdBy == "string") &&
|
|
37
|
+
(value.bookingInfo == undefined ||
|
|
38
|
+
BookingInfo.is(value.bookingInfo) ||
|
|
39
|
+
BookingInfoResponse.is(value.bookingInfo)) &&
|
|
40
|
+
(value.schedule == undefined ||
|
|
41
|
+
(Array.isArray(value.schedule) && value.schedule.every((item) => CardScheduleResponseItem.is(item)))) &&
|
|
42
|
+
(value.delivery == undefined || CardDeliveryResponse.is(value.delivery)) &&
|
|
43
|
+
(value.batchId == undefined || typeof value.batchId == "string"));
|
|
44
|
+
}
|
|
45
|
+
CardResponse.is = is;
|
|
46
|
+
})(CardResponse || (CardResponse = {}));
|
|
2
47
|
//# sourceMappingURL=CardResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponse.js","sourceRoot":"../","sources":["model/CardResponse.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"CardResponse.js","sourceRoot":"../","sources":["model/CardResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AA8B7C,MAAM,KAAW,YAAY,CAkC5B;AAlCD,WAAiB,YAAY;IAC5B,SAAgB,EAAE,CAAC,KAAyB;QAC3C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,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YAC3G,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACxE,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC,CAChE,CAAA;IACF,CAAC;IAhCe,eAAE,KAgCjB,CAAA;AACF,CAAC,EAlCgB,YAAY,KAAZ,YAAY,QAkC5B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Currency } from "isoly";
|
|
2
2
|
import { AccountState } from "./AccountState";
|
|
3
|
+
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
3
4
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
4
5
|
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
5
6
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
@@ -22,9 +23,10 @@ export interface CardResponseV2 {
|
|
|
22
23
|
providerCardId: string;
|
|
23
24
|
usage: CardUsage;
|
|
24
25
|
fundingAccount: FundingAccountResponseV2;
|
|
25
|
-
schedule: CardScheduleResponseItem[];
|
|
26
26
|
createdBy: string;
|
|
27
27
|
state: AccountState;
|
|
28
|
+
schedule?: CardScheduleResponseItem[];
|
|
29
|
+
bookingInfo?: BookingInfoResponse;
|
|
28
30
|
delivery?: CardDeliveryResponse;
|
|
29
31
|
batchId?: string;
|
|
30
32
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
1
2
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
2
3
|
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
3
4
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
@@ -27,7 +28,8 @@ export var CardResponseV2;
|
|
|
27
28
|
}))) &&
|
|
28
29
|
typeof value.createdBy == "string" &&
|
|
29
30
|
CardDeliveryResponse.is(value.delivery) &&
|
|
30
|
-
(value.batchId == undefined || typeof value.batchId == "string")
|
|
31
|
+
(value.batchId == undefined || typeof value.batchId == "string") &&
|
|
32
|
+
(value.bookingInfo == undefined || BookingInfoResponse.is(value.bookingInfo)));
|
|
31
33
|
}
|
|
32
34
|
CardResponseV2.is = is;
|
|
33
35
|
})(CardResponseV2 || (CardResponseV2 = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAyBvC,MAAM,KAAW,cAAc,CA0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KAAK,CAAC,WAAW,CAAC,CAAC,CAC7E,CAAA;IACF,CAAC;IAxBe,iBAAE,KAwBjB,CAAA;AACF,CAAC,EA1BgB,cAAc,KAAd,cAAc,QA0B9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryFundingAccountAccessRequest.js","sourceRoot":"../","sources":["model/CategoryFundingAccountAccessRequest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryLimitResponse.js","sourceRoot":"../","sources":["model/CategoryLimitResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CategoryFundingAccountAccessRequest } from "./CategoryFundingAccountAccessRequest";
|
|
2
|
+
import { CategoryLimitResponse } from "./CategoryLimitResponse";
|
|
3
|
+
import { CategoryStatus } from "./CategoryStatus";
|
|
4
|
+
export interface CategoryResponse {
|
|
5
|
+
name: string;
|
|
6
|
+
limits: CategoryLimitResponse[];
|
|
7
|
+
status: CategoryStatus;
|
|
8
|
+
fundingAccountAccess: CategoryFundingAccountAccessRequest;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryResponse.js","sourceRoot":"../","sources":["model/CategoryResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type CategoryStatus = "ACTIVE" | "DELETED";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CategoryStatus.js","sourceRoot":"../","sources":["model/CategoryStatus.ts"],"names":[],"mappings":""}
|
package/dist/model/Criteria.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InvokingSystem } from "./InvokingSystem";
|
|
1
2
|
export interface Criteria {
|
|
2
3
|
usernames?: string[];
|
|
3
4
|
categories?: string[];
|
|
@@ -5,7 +6,7 @@ export interface Criteria {
|
|
|
5
6
|
maxAmount?: number;
|
|
6
7
|
productTypes?: Array<"FLIGHT" | "ACCOMMODATION" | "ANY" | "CAR_PARKING" | "CAR_HIRE" | "TRANSFER" | "INSURANCE" | "PACKAGE" | "RAIL" | "CRUISE" | "ATTRACTION" | "BAGGAGE_TRACKING">;
|
|
7
8
|
suppliers?: string[];
|
|
8
|
-
bookingSources?: Array<
|
|
9
|
+
bookingSources?: Array<InvokingSystem>;
|
|
9
10
|
ruleStartDate?: string;
|
|
10
11
|
ruleEndDate?: string;
|
|
11
12
|
rank?: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DateTime } from "isoly";
|
|
2
|
+
export interface EmailValidationResponse {
|
|
3
|
+
valid?: boolean;
|
|
4
|
+
message?: string;
|
|
5
|
+
checkedAt?: DateTime;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace EmailValidationResponse {
|
|
8
|
+
function is(value: EmailValidationResponse | any): value is EmailValidationResponse;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DateTime } from "isoly";
|
|
2
|
+
export var EmailValidationResponse;
|
|
3
|
+
(function (EmailValidationResponse) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return (typeof value == "object" &&
|
|
6
|
+
(value.valid == undefined || typeof value.valid == "boolean") &&
|
|
7
|
+
(value.message == undefined || typeof value.message == "string") &&
|
|
8
|
+
(value.checkedAt == undefined || DateTime.is(value.checkedAt)));
|
|
9
|
+
}
|
|
10
|
+
EmailValidationResponse.is = is;
|
|
11
|
+
})(EmailValidationResponse || (EmailValidationResponse = {}));
|
|
12
|
+
//# sourceMappingURL=EmailValidationResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmailValidationResponse.js","sourceRoot":"../","sources":["model/EmailValidationResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAQhC,MAAM,KAAW,uBAAuB,CASvC;AATD,WAAiB,uBAAuB;IACvC,SAAgB,EAAE,CAAC,KAAoC;QACtD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,SAAS,CAAC;YAC7D,CAAC,KAAK,CAAC,OAAO,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAC;YAChE,CAAC,KAAK,CAAC,SAAS,IAAI,SAAS,IAAI,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAC9D,CAAA;IACF,CAAC;IAPe,0BAAE,KAOjB,CAAA;AACF,CAAC,EATgB,uBAAuB,KAAvB,uBAAuB,QASvC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const invokingSystems: readonly ["PORTAL", "REST_API", "FAB", "REST_API_PORTAL", "REST_API_EXTERNAL", "SOAP_API_FAB", "SOAP_API_EXTERNAL", "CRON", "UNKNOWN", "UNDEFINED"];
|
|
2
|
+
export declare type InvokingSystem = typeof invokingSystems[number];
|
|
3
|
+
export declare namespace InvokingSystem {
|
|
4
|
+
function is(value: unknown): value is InvokingSystem;
|
|
5
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const invokingSystems = [
|
|
2
|
+
"PORTAL",
|
|
3
|
+
"REST_API",
|
|
4
|
+
"FAB",
|
|
5
|
+
"REST_API_PORTAL",
|
|
6
|
+
"REST_API_EXTERNAL",
|
|
7
|
+
"SOAP_API_FAB",
|
|
8
|
+
"SOAP_API_EXTERNAL",
|
|
9
|
+
"CRON",
|
|
10
|
+
"UNKNOWN",
|
|
11
|
+
"UNDEFINED",
|
|
12
|
+
];
|
|
13
|
+
export var InvokingSystem;
|
|
14
|
+
(function (InvokingSystem) {
|
|
15
|
+
function is(value) {
|
|
16
|
+
return typeof value == "string" && invokingSystems.includes(value);
|
|
17
|
+
}
|
|
18
|
+
InvokingSystem.is = is;
|
|
19
|
+
})(InvokingSystem || (InvokingSystem = {}));
|
|
20
|
+
//# sourceMappingURL=InvokingSystem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvokingSystem.js","sourceRoot":"../","sources":["model/InvokingSystem.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC9B,QAAQ;IACR,UAAU;IACV,KAAK;IACL,iBAAiB;IACjB,mBAAmB;IACnB,cAAc;IACd,mBAAmB;IACnB,MAAM;IACN,SAAS;IACT,WAAW;CACF,CAAA;AAIV,MAAM,KAAW,cAAc,CAI9B;AAJD,WAAiB,cAAc;IAC9B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAuB,CAAC,CAAA;IACrF,CAAC;IAFe,iBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,cAAc,KAAd,cAAc,QAI9B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InvokingSystem } from "./InvokingSystem";
|
|
1
2
|
import { Issue } from "./Issue";
|
|
2
3
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
3
4
|
import { UserResponse } from "./UserResponse";
|
|
@@ -6,7 +7,7 @@ export interface LoginResponse {
|
|
|
6
7
|
status?: "SUCCESS" | "FAILURE";
|
|
7
8
|
token: string;
|
|
8
9
|
expiry: string;
|
|
9
|
-
invokingSystem:
|
|
10
|
+
invokingSystem: InvokingSystem;
|
|
10
11
|
trackingId: string;
|
|
11
12
|
user: UserResponse;
|
|
12
13
|
username: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InvokingSystem } from "./InvokingSystem";
|
|
1
2
|
import { Issue } from "./Issue";
|
|
2
3
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
3
4
|
import { UserResponse } from "./UserResponse";
|
|
@@ -9,16 +10,7 @@ export var LoginResponse;
|
|
|
9
10
|
(value.status == undefined || value.status == "SUCCESS" || value.status == "FAILURE") &&
|
|
10
11
|
typeof value.token == "string" &&
|
|
11
12
|
typeof value.expiry == "string" &&
|
|
12
|
-
(value.invokingSystem
|
|
13
|
-
value.invokingSystem == "REST_API" ||
|
|
14
|
-
value.invokingSystem == "FAB" ||
|
|
15
|
-
value.invokingSystem == "REST_API_PORTAL" ||
|
|
16
|
-
value.invokingSystem == "REST_API_EXTERNAL" ||
|
|
17
|
-
value.invokingSystem == "SOAP_API_FAB" ||
|
|
18
|
-
value.invokingSystem == "SOAP_API_EXTERNAL" ||
|
|
19
|
-
value.invokingSystem == "CRON" ||
|
|
20
|
-
value.invokingSystem == "UNKNOWN" ||
|
|
21
|
-
value.invokingSystem == "UNDEFINED") &&
|
|
13
|
+
InvokingSystem.is(value.invokingSystem) &&
|
|
22
14
|
typeof value.trackingId == "string" &&
|
|
23
15
|
UserResponse.is(value.user) &&
|
|
24
16
|
typeof value.username == "string" &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginResponse.js","sourceRoot":"../","sources":["model/LoginResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"LoginResponse.js","sourceRoot":"../","sources":["model/LoginResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAkB7C,MAAM,KAAW,aAAa,CAgB7B;AAhBD,WAAiB,aAAa;IAC7B,SAAgB,EAAE,CAAC,KAA0B;QAC5C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;YAC5F,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC;YACrF,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ;YAC9B,OAAO,KAAK,CAAC,MAAM,IAAI,QAAQ;YAC/B,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;YACvC,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC;YAC3B,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ;YACjC,oBAAoB,CAAC,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC;YACpD,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CACrC,CAAA;IACF,CAAC;IAde,gBAAE,KAcjB,CAAA;AACF,CAAC,EAhBgB,aAAa,KAAb,aAAa,QAgB7B"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var SupplierBookingInfo;
|
|
2
|
+
(function (SupplierBookingInfo) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
(value.supplierBookingRef == undefined || typeof value.supplierBookingRef == "string") &&
|
|
6
|
+
(value.supplierCode == undefined || typeof value.supplierCode == "string"));
|
|
7
|
+
}
|
|
8
|
+
SupplierBookingInfo.is = is;
|
|
9
|
+
})(SupplierBookingInfo || (SupplierBookingInfo = {}));
|
|
2
10
|
//# sourceMappingURL=SupplierBookingInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SupplierBookingInfo.js","sourceRoot":"../","sources":["model/SupplierBookingInfo.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"SupplierBookingInfo.js","sourceRoot":"../","sources":["model/SupplierBookingInfo.ts"],"names":[],"mappings":"AAQA,MAAM,KAAW,mBAAmB,CAQnC;AARD,WAAiB,mBAAmB;IACnC,SAAgB,EAAE,CAAC,KAAgC;QAClD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,kBAAkB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,kBAAkB,IAAI,QAAQ,CAAC;YACtF,CAAC,KAAK,CAAC,YAAY,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,YAAY,IAAI,QAAQ,CAAC,CAC1E,CAAA;IACF,CAAC;IANe,sBAAE,KAMjB,CAAA;AACF,CAAC,EARgB,mBAAmB,KAAnB,mBAAmB,QAQnC"}
|
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export var TravelPartyInfo;
|
|
2
|
+
(function (TravelPartyInfo) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
(value.travelPartyLeadPax == undefined || typeof value.travelPartyLeadPax == "string") &&
|
|
6
|
+
(value.travelPartyNumAdult == undefined || typeof value.travelPartyNumAdult == "number") &&
|
|
7
|
+
(value.travelPartyNumChild == undefined || typeof value.travelPartyNumChild == "number") &&
|
|
8
|
+
(value.travelPartyNumInfant == undefined || typeof value.travelPartyNumInfant == "number"));
|
|
9
|
+
}
|
|
10
|
+
TravelPartyInfo.is = is;
|
|
11
|
+
})(TravelPartyInfo || (TravelPartyInfo = {}));
|
|
2
12
|
//# sourceMappingURL=TravelPartyInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TravelPartyInfo.js","sourceRoot":"../","sources":["model/TravelPartyInfo.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"TravelPartyInfo.js","sourceRoot":"../","sources":["model/TravelPartyInfo.ts"],"names":[],"mappings":"AAUA,MAAM,KAAW,eAAe,CAU/B;AAVD,WAAiB,eAAe;IAC/B,SAAgB,EAAE,CAAC,KAA4B;QAC9C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,kBAAkB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,kBAAkB,IAAI,QAAQ,CAAC;YACtF,CAAC,KAAK,CAAC,mBAAmB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,mBAAmB,IAAI,QAAQ,CAAC;YACxF,CAAC,KAAK,CAAC,mBAAmB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,mBAAmB,IAAI,QAAQ,CAAC;YACxF,CAAC,KAAK,CAAC,oBAAoB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,oBAAoB,IAAI,QAAQ,CAAC,CAC1F,CAAA;IACF,CAAC;IARe,kBAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,eAAe,KAAf,eAAe,QAU/B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UserLimitsRequest } from "./UserLimitsRequest";
|
|
2
|
+
import { UserStatus } from "./UserStatus";
|
|
2
3
|
export interface UserChangeRequest {
|
|
3
4
|
firstName: string;
|
|
4
5
|
lastName: string;
|
|
5
6
|
email: string;
|
|
6
7
|
category?: string;
|
|
7
|
-
status?:
|
|
8
|
+
status?: UserStatus;
|
|
8
9
|
userLimits?: UserLimitsRequest[];
|
|
9
10
|
}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
export var UserLimitsRequest;
|
|
3
|
+
(function (UserLimitsRequest) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return (typeof value == "object" &&
|
|
6
|
+
Currency.is(value.currency) &&
|
|
7
|
+
(value.limit == undefined || typeof value.limit == "number"));
|
|
8
|
+
}
|
|
9
|
+
UserLimitsRequest.is = is;
|
|
10
|
+
})(UserLimitsRequest || (UserLimitsRequest = {}));
|
|
2
11
|
//# sourceMappingURL=UserLimitsRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserLimitsRequest.js","sourceRoot":"../","sources":["model/UserLimitsRequest.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"UserLimitsRequest.js","sourceRoot":"../","sources":["model/UserLimitsRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAUhC,MAAM,KAAW,iBAAiB,CAQjC;AARD,WAAiB,iBAAiB;IACjC,SAAgB,EAAE,CAAC,KAA8B;QAChD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC3B,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC,CAC5D,CAAA;IACF,CAAC;IANe,oBAAE,KAMjB,CAAA;AACF,CAAC,EARgB,iBAAiB,KAAjB,iBAAiB,QAQjC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { UserLimitsRequest } from "./UserLimitsRequest";
|
|
2
|
+
import { UserStatus } from "./UserStatus";
|
|
2
3
|
export interface UserRequest {
|
|
3
4
|
username: string;
|
|
4
5
|
password: string;
|
|
5
6
|
firstName: string;
|
|
6
7
|
lastName: string;
|
|
7
|
-
status?:
|
|
8
|
+
status?: UserStatus;
|
|
8
9
|
email: string;
|
|
9
10
|
userLimits?: UserLimitsRequest[];
|
|
10
11
|
rolesets?: string[];
|
|
11
12
|
category?: string;
|
|
12
13
|
}
|
|
14
|
+
export declare namespace UserRequest {
|
|
15
|
+
function is(value: UserRequest | any): value is UserRequest;
|
|
16
|
+
}
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { UserLimitsRequest } from "./UserLimitsRequest";
|
|
2
|
+
import { UserStatus } from "./UserStatus";
|
|
3
|
+
export var UserRequest;
|
|
4
|
+
(function (UserRequest) {
|
|
5
|
+
function is(value) {
|
|
6
|
+
return (typeof value == "object" &&
|
|
7
|
+
typeof value.username == "string" &&
|
|
8
|
+
typeof value.password == "string" &&
|
|
9
|
+
typeof value.firstName == "string" &&
|
|
10
|
+
typeof value.lastName == "string" &&
|
|
11
|
+
(value.status == undefined || UserStatus.is(value.status)) &&
|
|
12
|
+
typeof value.email == "string" &&
|
|
13
|
+
(value.userLimits == undefined ||
|
|
14
|
+
(Array.isArray(value.userLimits) && value.userLimits.every((item) => UserLimitsRequest.is(item)))) &&
|
|
15
|
+
(value.rolesets == undefined ||
|
|
16
|
+
(Array.isArray(value.rolesets) && value.rolesets.every((item) => typeof item == "string"))) &&
|
|
17
|
+
(value.category == undefined || typeof value.category == "string"));
|
|
18
|
+
}
|
|
19
|
+
UserRequest.is = is;
|
|
20
|
+
})(UserRequest || (UserRequest = {}));
|
|
2
21
|
//# sourceMappingURL=UserRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserRequest.js","sourceRoot":"../","sources":["model/UserRequest.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"UserRequest.js","sourceRoot":"../","sources":["model/UserRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAiBzC,MAAM,KAAW,WAAW,CAiB3B;AAjBD,WAAiB,WAAW;IAC3B,SAAgB,EAAE,CAAC,KAAwB;QAC1C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ;YACjC,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ;YACjC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ;YACjC,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC1D,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ;YAC9B,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS;gBAC7B,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACxG,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS;gBAC3B,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,OAAO,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC;YACjG,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAClE,CAAA;IACF,CAAC;IAfe,cAAE,KAejB,CAAA;AACF,CAAC,EAjBgB,WAAW,KAAX,WAAW,QAiB3B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { OrganisationResponse } from "./OrganisationResponse";
|
|
2
2
|
import { TwoFactorAuthenticationDetails } from "./TwoFactorAuthenticationDetails";
|
|
3
3
|
import { UserLimitsResponse } from "./UserLimitsResponse";
|
|
4
|
+
import { UserStatus } from "./UserStatus";
|
|
4
5
|
export interface UserResponse {
|
|
5
6
|
username: string;
|
|
6
7
|
firstName: string;
|
|
7
8
|
lastName: string;
|
|
8
9
|
email: string;
|
|
9
|
-
status?:
|
|
10
|
+
status?: UserStatus;
|
|
10
11
|
passwordUpdatedOn?: string;
|
|
11
12
|
category?: string;
|
|
12
13
|
organisation?: OrganisationResponse;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UserStatus } from "./UserStatus";
|
|
1
2
|
export var UserResponse;
|
|
2
3
|
(function (UserResponse) {
|
|
3
4
|
function is(value) {
|
|
@@ -6,11 +7,7 @@ export var UserResponse;
|
|
|
6
7
|
(value.firstName == undefined || typeof value.firstName == "string") &&
|
|
7
8
|
(value.lastName == undefined || typeof value.lastName == "string") &&
|
|
8
9
|
(value.email == undefined || typeof value.email == "string") &&
|
|
9
|
-
(value.status == undefined ||
|
|
10
|
-
value.status == "ACTIVE" ||
|
|
11
|
-
value.status == "INACTIVE" ||
|
|
12
|
-
value.status == "DELETED" ||
|
|
13
|
-
value.status == "PASSWORD_EXPIRED") &&
|
|
10
|
+
(value.status == undefined || UserStatus.is(value.status)) &&
|
|
14
11
|
(value.passwordUpdatedOn == undefined || typeof value.passwordUpdatedOn == "string") &&
|
|
15
12
|
(value.category == undefined || typeof value.category == "string"));
|
|
16
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserResponse.js","sourceRoot":"../","sources":["model/UserResponse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserResponse.js","sourceRoot":"../","sources":["model/UserResponse.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAmBzC,MAAM,KAAW,YAAY,CAa5B;AAbD,WAAiB,YAAY;IAC5B,SAAgB,EAAE,CAAC,KAAyB;QAC3C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC;YAClE,CAAC,KAAK,CAAC,SAAS,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC;YACpE,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC;YAClE,CAAC,KAAK,CAAC,KAAK,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,KAAK,IAAI,QAAQ,CAAC;YAC5D,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;YAC1D,CAAC,KAAK,CAAC,iBAAiB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ,CAAC;YACpF,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAClE,CAAA;IACF,CAAC;IAXe,eAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,YAAY,KAAZ,YAAY,QAa5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const userStatus = ["ACTIVE", "INACTIVE", "DELETED", "PASSWORD_EXPIRED"];
|
|
2
|
+
export var UserStatus;
|
|
3
|
+
(function (UserStatus) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return typeof value == "string" && userStatus.includes(value);
|
|
6
|
+
}
|
|
7
|
+
UserStatus.is = is;
|
|
8
|
+
})(UserStatus || (UserStatus = {}));
|
|
9
|
+
//# sourceMappingURL=UserStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserStatus.js","sourceRoot":"../","sources":["model/UserStatus.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,kBAAkB,CAAU,CAAA;AAIxF,MAAM,KAAW,UAAU,CAI1B;AAJD,WAAiB,UAAU;IAC1B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,UAAU,CAAC,QAAQ,CAAC,KAAmB,CAAC,CAAA;IAC5E,CAAC;IAFe,aAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,UAAU,KAAV,UAAU,QAI1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface UsernameAvailabilityResponse {
|
|
2
|
+
username?: string;
|
|
3
|
+
available?: boolean;
|
|
4
|
+
inOwnOrganisation?: boolean;
|
|
5
|
+
suggestion?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace UsernameAvailabilityResponse {
|
|
8
|
+
function is(value: UsernameAvailabilityResponse | any): value is UsernameAvailabilityResponse;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var UsernameAvailabilityResponse;
|
|
2
|
+
(function (UsernameAvailabilityResponse) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
(value.username == undefined || typeof value.username == "string") &&
|
|
6
|
+
(value.available == undefined || typeof value.available == "boolean") &&
|
|
7
|
+
(value.inOwnOrganisation == undefined || typeof value.inOwnOrganisation == "boolean") &&
|
|
8
|
+
(value.suggestion == undefined || typeof value.suggestion == "string"));
|
|
9
|
+
}
|
|
10
|
+
UsernameAvailabilityResponse.is = is;
|
|
11
|
+
})(UsernameAvailabilityResponse || (UsernameAvailabilityResponse = {}));
|
|
12
|
+
//# sourceMappingURL=UsernameAvailabilityResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UsernameAvailabilityResponse.js","sourceRoot":"../","sources":["model/UsernameAvailabilityResponse.ts"],"names":[],"mappings":"AAOA,MAAM,KAAW,4BAA4B,CAU5C;AAVD,WAAiB,4BAA4B;IAC5C,SAAgB,EAAE,CAAC,KAAyC;QAC3D,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,CAAC;YAClE,CAAC,KAAK,CAAC,SAAS,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,SAAS,IAAI,SAAS,CAAC;YACrE,CAAC,KAAK,CAAC,iBAAiB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,SAAS,CAAC;YACrF,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC,CACtE,CAAA;IACF,CAAC;IARe,+BAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,4BAA4B,KAA5B,4BAA4B,QAU5C"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { CardAmendmentScheduledTaskRequest } from "./CardAmendmentScheduledTaskR
|
|
|
23
23
|
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
24
24
|
import { CardDeliveryRequest } from "./CardDeliveryRequest";
|
|
25
25
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
26
|
+
import { CardForm } from "./CardForm";
|
|
26
27
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
|
|
27
28
|
import { CardOptionSearch } from "./CardOptionSearch";
|
|
28
29
|
import { CardProcessedTransaction } from "./CardProcessedTransaction";
|
|
@@ -43,6 +44,10 @@ import { CardTypesConfig } from "./CardTypesConfig";
|
|
|
43
44
|
import { CardTypeSearchRequest } from "./CardTypeSearchRequest";
|
|
44
45
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
45
46
|
import { CardTypeSpecificationFlag } from "./CardTypeSpecificationFlag";
|
|
47
|
+
import { CategoryFundingAccountAccessRequest } from "./CategoryFundingAccountAccessRequest";
|
|
48
|
+
import { CategoryLimitResponse } from "./CategoryLimitResponse";
|
|
49
|
+
import { CategoryResponse } from "./CategoryResponse";
|
|
50
|
+
import { CategoryStatus } from "./CategoryStatus";
|
|
46
51
|
import { ConfigMatchesRequest } from "./ConfigMatchesRequest";
|
|
47
52
|
import { ConfigMatchesResponse } from "./ConfigMatchesResponse";
|
|
48
53
|
import { ConfigRequest } from "./ConfigRequest";
|
|
@@ -54,6 +59,7 @@ import { CredentialRequest } from "./CredentialRequest";
|
|
|
54
59
|
import { CredentialResponse } from "./CredentialResponse";
|
|
55
60
|
import { Criteria } from "./Criteria";
|
|
56
61
|
import { DateRangeLocalDate } from "./DateRangeLocalDate";
|
|
62
|
+
import { EmailValidationResponse } from "./EmailValidationResponse";
|
|
57
63
|
import { ErrorMessageDto } from "./ErrorMessageDto";
|
|
58
64
|
import { ErrorResponse } from "./ErrorResponse";
|
|
59
65
|
import { FiveFieldsBookingInfoRequest } from "./FiveFieldsBookingInfoRequest";
|
|
@@ -75,6 +81,7 @@ import { InsertCardOptionRequest } from "./InsertCardOptionRequest";
|
|
|
75
81
|
import { InsertCardRequest } from "./InsertCardRequest";
|
|
76
82
|
import { InvoiceBookingInfoRequest } from "./InvoiceBookingInfoRequest";
|
|
77
83
|
import { InvoiceBookingInfoResponse } from "./InvoiceBookingInfoResponse";
|
|
84
|
+
import { InvokingSystem } from "./InvokingSystem";
|
|
78
85
|
import { Issue } from "./Issue";
|
|
79
86
|
import { LegacyBookingInfoRequest } from "./LegacyBookingInfoRequest";
|
|
80
87
|
import { LoginRequest } from "./LoginRequest";
|
|
@@ -133,9 +140,11 @@ import { UserConfig } from "./UserConfig";
|
|
|
133
140
|
import { UserLimitsDeleteRequest } from "./UserLimitsDeleteRequest";
|
|
134
141
|
import { UserLimitsRequest } from "./UserLimitsRequest";
|
|
135
142
|
import { UserLimitsResponse } from "./UserLimitsResponse";
|
|
143
|
+
import { UsernameAvailabilityResponse } from "./UsernameAvailabilityResponse";
|
|
136
144
|
import { UserRequest } from "./UserRequest";
|
|
137
145
|
import { UserResponse } from "./UserResponse";
|
|
138
146
|
import { UserRoleResponse } from "./UserRoleResponse";
|
|
139
147
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
148
|
+
import { UserStatus } from "./UserStatus";
|
|
140
149
|
import { YearMonth } from "./YearMonth";
|
|
141
|
-
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
|
150
|
+
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, EmailValidationResponse, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|