swoop-common 2.2.77 → 2.2.83
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/generated/core/exports.d.ts +0 -2
- package/dist/api/generated/core/index.d.ts +0 -2
- package/dist/api/generated/core/models/Amendment.d.ts +1 -1
- package/dist/api/generated/core/models/ComponentInstance.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentCreate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentEntity.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentRead.d.ts +1 -0
- package/dist/api/generated/core/models/DTOComponentUpdate.d.ts +1 -0
- package/dist/api/generated/core/models/DTOItineraryCreate.d.ts +0 -4
- package/dist/api/generated/core/models/DTOItineraryEntity.d.ts +0 -4
- package/dist/api/generated/core/models/DTOItineraryRead.d.ts +0 -4
- package/dist/api/generated/core/models/DTOItineraryUpdate.d.ts +0 -4
- package/dist/api/generated/core/models/DTOSwoopSync.d.ts +2 -4
- package/dist/api/generated/core/models/Destination.d.ts +1 -0
- package/dist/api/generated/core/models/Destination.js +1 -0
- package/dist/api/generated/core/models/SwoopSyncComponentInstance.d.ts +0 -2
- package/dist/api/generated/swoop/models/Partner.d.ts +6 -0
- package/dist/api/generated/swoop/models/Partner_jsonld.d.ts +6 -0
- package/dist/rendering/renderers/ComponentPicker.d.ts +1 -0
- package/package.json +62 -57
- package/dist/api/generated/core/models/Discount.d.ts +0 -10
- package/dist/api/generated/core/models/Discount.js +0 -1
- package/dist/api/generated/core/models/Fee.d.ts +0 -10
- package/dist/api/generated/core/models/Fee.js +0 -1
|
@@ -22,7 +22,6 @@ export type { ComponentRevisionGroupId } from './index';
|
|
|
22
22
|
export { ComponentState } from './index';
|
|
23
23
|
export { Currency } from './index';
|
|
24
24
|
export { Destination } from './index';
|
|
25
|
-
export type { Discount } from './index';
|
|
26
25
|
export type { DTOBranchCreate } from './index';
|
|
27
26
|
export type { DTOBranchEntity } from './index';
|
|
28
27
|
export type { DTOBranchRead } from './index';
|
|
@@ -56,7 +55,6 @@ export type { EnquiryId } from './index';
|
|
|
56
55
|
export type { EnquiryIdPathParam } from './index';
|
|
57
56
|
export type { EnquiryIdQueryParam } from './index';
|
|
58
57
|
export type { ExpandedMap } from './index';
|
|
59
|
-
export type { Fee } from './index';
|
|
60
58
|
export type { Field } from './index';
|
|
61
59
|
export type { Flag } from './index';
|
|
62
60
|
export type { InternalSwoopId } from './index';
|
|
@@ -22,7 +22,6 @@ export type { ComponentRevisionGroupId } from './models/ComponentRevisionGroupId
|
|
|
22
22
|
export { ComponentState } from './models/ComponentState';
|
|
23
23
|
export { Currency } from './models/Currency';
|
|
24
24
|
export { Destination } from './models/Destination';
|
|
25
|
-
export type { Discount } from './models/Discount';
|
|
26
25
|
export type { DTOBranchCreate } from './models/DTOBranchCreate';
|
|
27
26
|
export type { DTOBranchEntity } from './models/DTOBranchEntity';
|
|
28
27
|
export type { DTOBranchRead } from './models/DTOBranchRead';
|
|
@@ -56,7 +55,6 @@ export type { EnquiryId } from './models/EnquiryId';
|
|
|
56
55
|
export type { EnquiryIdPathParam } from './models/EnquiryIdPathParam';
|
|
57
56
|
export type { EnquiryIdQueryParam } from './models/EnquiryIdQueryParam';
|
|
58
57
|
export type { ExpandedMap } from './models/ExpandedMap';
|
|
59
|
-
export type { Fee } from './models/Fee';
|
|
60
58
|
export type { Field } from './models/Field';
|
|
61
59
|
export type { Flag } from './models/Flag';
|
|
62
60
|
export type { InternalSwoopId } from './models/InternalSwoopId';
|
|
@@ -2,7 +2,7 @@ import type { AmendmentTravellers } from './AmendmentTravellers';
|
|
|
2
2
|
import type { AmendmentType } from './AmendmentType';
|
|
3
3
|
import type { ComponentInstanceId } from './ComponentInstanceId';
|
|
4
4
|
export type Amendment = {
|
|
5
|
-
|
|
5
|
+
amendmentType: AmendmentType;
|
|
6
6
|
componentInstanceId: ComponentInstanceId;
|
|
7
7
|
date: string;
|
|
8
8
|
description: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Amendment } from './Amendment';
|
|
2
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
3
|
-
import type { Discount } from './Discount';
|
|
4
|
-
import type { Fee } from './Fee';
|
|
5
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
6
4
|
import type { ItineraryValue } from './ItineraryValue';
|
|
7
5
|
import type { QuoteOptions } from './QuoteOptions';
|
|
@@ -13,8 +11,6 @@ export type DTOItineraryCreate = {
|
|
|
13
11
|
values?: Array<ItineraryValue>;
|
|
14
12
|
amendments?: Array<Amendment>;
|
|
15
13
|
componentInstances?: Array<ComponentInstance>;
|
|
16
|
-
fees?: Array<Fee>;
|
|
17
14
|
quoteOption?: QuoteOptions;
|
|
18
|
-
discounts?: Array<Discount>;
|
|
19
15
|
isLateBookingConfirmed?: boolean;
|
|
20
16
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Amendment } from './Amendment';
|
|
2
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
3
|
-
import type { Discount } from './Discount';
|
|
4
|
-
import type { Fee } from './Fee';
|
|
5
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
6
4
|
import type { ItineraryId } from './ItineraryId';
|
|
7
5
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
@@ -20,8 +18,6 @@ export type DTOItineraryEntity = {
|
|
|
20
18
|
values: Array<ItineraryValue>;
|
|
21
19
|
amendments?: Array<Amendment>;
|
|
22
20
|
componentInstances: Array<ComponentInstance>;
|
|
23
|
-
fees: Array<Fee>;
|
|
24
21
|
quoteOption?: QuoteOptions;
|
|
25
|
-
discounts: Array<Discount>;
|
|
26
22
|
isLateBookingConfirmed: boolean;
|
|
27
23
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Amendment } from './Amendment';
|
|
2
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
3
|
-
import type { Discount } from './Discount';
|
|
4
|
-
import type { Fee } from './Fee';
|
|
5
3
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
6
4
|
import type { ItineraryId } from './ItineraryId';
|
|
7
5
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
@@ -20,8 +18,6 @@ export type DTOItineraryRead = {
|
|
|
20
18
|
values: Array<ItineraryValue>;
|
|
21
19
|
amendments?: Array<Amendment>;
|
|
22
20
|
componentInstances: Array<ComponentInstance>;
|
|
23
|
-
fees: Array<Fee>;
|
|
24
21
|
quoteOption?: QuoteOptions;
|
|
25
|
-
discounts: Array<Discount>;
|
|
26
22
|
isLateBookingConfirmed: boolean;
|
|
27
23
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Amendment } from './Amendment';
|
|
2
2
|
import type { ComponentInstance } from './ComponentInstance';
|
|
3
|
-
import type { Discount } from './Discount';
|
|
4
|
-
import type { Fee } from './Fee';
|
|
5
3
|
import type { ItineraryValue } from './ItineraryValue';
|
|
6
4
|
import type { QuoteOptions } from './QuoteOptions';
|
|
7
5
|
import type { Title } from './Title';
|
|
@@ -11,8 +9,6 @@ export type DTOItineraryUpdate = {
|
|
|
11
9
|
values?: Array<ItineraryValue>;
|
|
12
10
|
componentInstances?: Array<ComponentInstance>;
|
|
13
11
|
amendments?: Array<Amendment>;
|
|
14
|
-
fees?: Array<Fee>;
|
|
15
12
|
quoteOption?: QuoteOptions;
|
|
16
|
-
discounts?: Array<Discount>;
|
|
17
13
|
isLateBookingConfirmed?: boolean;
|
|
18
14
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Fee } from './Fee';
|
|
1
|
+
import type { Amendment } from './Amendment';
|
|
3
2
|
import type { InternalSwoopId } from './InternalSwoopId';
|
|
4
3
|
import type { ItineraryId } from './ItineraryId';
|
|
5
4
|
import type { ItineraryRevisionGroupId } from './ItineraryRevisionGroupId';
|
|
@@ -17,9 +16,8 @@ export type DTOSwoopSync = {
|
|
|
17
16
|
title: Title;
|
|
18
17
|
welcomeNote: string;
|
|
19
18
|
values: Array<ItineraryValue>;
|
|
19
|
+
amendments?: Array<Amendment>;
|
|
20
20
|
componentInstances: Array<SwoopSyncComponentInstance>;
|
|
21
|
-
fees: Array<Fee>;
|
|
22
21
|
quoteOption?: QuoteOptions;
|
|
23
|
-
discounts: Array<Discount>;
|
|
24
22
|
isLateBookingConfirmed: boolean;
|
|
25
23
|
};
|
|
@@ -6,5 +6,6 @@ export var Destination;
|
|
|
6
6
|
(function (Destination) {
|
|
7
7
|
Destination["PATAGONIA"] = "patagonia";
|
|
8
8
|
Destination["ANTARCTICA"] = "antarctica";
|
|
9
|
+
Destination["UNSPECIFIED"] = "unspecified";
|
|
9
10
|
Destination["REST_OF_CHILE_ARGENTINA"] = "rest of chile/argentina";
|
|
10
11
|
})(Destination || (Destination = {}));
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Amendment } from './Amendment';
|
|
2
1
|
import type { AssignedPassenger } from './AssignedPassenger';
|
|
3
2
|
import type { AssignedTravellerGroup } from './AssignedTravellerGroup';
|
|
4
3
|
import type { BookingStatus } from './BookingStatus';
|
|
@@ -25,7 +24,6 @@ export type SwoopSyncComponentInstance = {
|
|
|
25
24
|
negotiatedDiscount: number;
|
|
26
25
|
nonCommissionableAmount: number;
|
|
27
26
|
};
|
|
28
|
-
amendments?: Array<Amendment>;
|
|
29
27
|
bookingGroup: string;
|
|
30
28
|
startDate: string;
|
|
31
29
|
endDate: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Currency } from './Currency';
|
|
1
2
|
export type Partner = {
|
|
2
3
|
id?: string;
|
|
3
4
|
partnerId?: number;
|
|
@@ -16,4 +17,9 @@ export type Partner = {
|
|
|
16
17
|
balanceDueDays?: number;
|
|
17
18
|
depositType?: string;
|
|
18
19
|
depositValue?: number;
|
|
20
|
+
nonCommissionableAmount?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The currencies used by this partner
|
|
23
|
+
*/
|
|
24
|
+
currencies?: Array<Currency>;
|
|
19
25
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Currency } from './Currency';
|
|
1
2
|
import type { HydraItemBaseSchema } from './HydraItemBaseSchema';
|
|
2
3
|
export type Partner_jsonld = (HydraItemBaseSchema & {
|
|
3
4
|
id?: string;
|
|
@@ -17,4 +18,9 @@ export type Partner_jsonld = (HydraItemBaseSchema & {
|
|
|
17
18
|
balanceDueDays?: number;
|
|
18
19
|
depositType?: string;
|
|
19
20
|
depositValue?: number;
|
|
21
|
+
nonCommissionableAmount?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The currencies used by this partner
|
|
24
|
+
*/
|
|
25
|
+
currencies?: Array<Currency>;
|
|
20
26
|
});
|
|
@@ -14,6 +14,7 @@ export declare const fetchComponents: () => Promise<{
|
|
|
14
14
|
media: import("../../api/generated/core").Media;
|
|
15
15
|
destination: import("../../api/generated/core").Destination;
|
|
16
16
|
name: import("../../api/generated/core").Title;
|
|
17
|
+
externalName: string;
|
|
17
18
|
description: import("../../api/generated/core").ComponentDescription;
|
|
18
19
|
notes?: import("../../api/generated/core").ComponentNotes;
|
|
19
20
|
faq?: import("../../api/generated/core").ComponentFAQ;
|
package/package.json
CHANGED
|
@@ -1,61 +1,66 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
"./rendering": {
|
|
13
|
-
"import": "./dist/rendering/index.js",
|
|
14
|
-
"require": "./dist/rendering/index.js",
|
|
15
|
-
"types": "./dist/rendering/index.d.ts"
|
|
16
|
-
}
|
|
2
|
+
"name": "swoop-common",
|
|
3
|
+
"version": "2.2.83",
|
|
4
|
+
"main": "dist/api/index.js",
|
|
5
|
+
"types": "dist/api/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": "./dist/api/index.js",
|
|
9
|
+
"require": "./dist/api/index.js",
|
|
10
|
+
"types": "./dist/api/index.d.ts"
|
|
17
11
|
},
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
-
"build": "rimraf ./dist && tsc",
|
|
24
|
-
"build-imports": "tsx ./src/rendering/prebuild/import.ts",
|
|
25
|
-
"generate-swoop-specs": "tsx ./src/api/specsgen.ts",
|
|
26
|
-
"build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
|
|
27
|
-
"build-swoop-sdk": "npm run generate-swoop-specs && npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
|
|
28
|
-
"prebuild": "npm run build-imports && npm run build-sdk",
|
|
29
|
-
"build-sdk-exports": "tsx ./src/api/gen.ts",
|
|
30
|
-
"build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
|
|
31
|
-
},
|
|
32
|
-
"author": "",
|
|
33
|
-
"license": "ISC",
|
|
34
|
-
"description": "",
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@apidevtools/swagger-parser": "^12.0.0",
|
|
37
|
-
"@emotion/react": "^11.14.0",
|
|
38
|
-
"@emotion/styled": "^11.14.1",
|
|
39
|
-
"@jsonforms/core": "^3.5.1",
|
|
40
|
-
"@jsonforms/material-renderers": "^3.5.1",
|
|
41
|
-
"@jsonforms/react": "^3.5.1",
|
|
42
|
-
"ajv": "^8.17.1",
|
|
43
|
-
"js-yaml": "^4.1.1",
|
|
44
|
-
"lodash.merge": "^4.6.2",
|
|
45
|
-
"openapi-ts": "^0.3.4",
|
|
46
|
-
"react": "^19.0.0",
|
|
47
|
-
"rimraf": "^6.0.1",
|
|
48
|
-
"swoop-common": "^2.1.55"
|
|
49
|
-
},
|
|
50
|
-
"devDependencies": {
|
|
51
|
-
"@apidevtools/swagger-cli": "^4.0.4",
|
|
52
|
-
"@hey-api/openapi-ts": "^0.80.2",
|
|
53
|
-
"@types/js-yaml": "^4.0.9",
|
|
54
|
-
"@types/lodash.merge": "^4.6.9",
|
|
55
|
-
"@types/node": "^24.0.14",
|
|
56
|
-
"@types/react": "^19",
|
|
57
|
-
"openapi-typescript-codegen": "^0.29.0",
|
|
58
|
-
"tsx": "^4.20.3",
|
|
59
|
-
"typescript": "^5.8.3"
|
|
12
|
+
"./rendering": {
|
|
13
|
+
"import": "./dist/rendering/index.js",
|
|
14
|
+
"require": "./dist/rendering/index.js",
|
|
15
|
+
"types": "./dist/rendering/index.d.ts"
|
|
60
16
|
}
|
|
17
|
+
},
|
|
18
|
+
"./rendering": {
|
|
19
|
+
"import": "./dist/rendering/index.js",
|
|
20
|
+
"require": "./dist/rendering/index.js",
|
|
21
|
+
"types": "./dist/rendering/index.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
28
|
+
"build": "rimraf ./dist && tsc",
|
|
29
|
+
"build-imports": "tsx ./src/rendering/prebuild/import.ts",
|
|
30
|
+
"generate-swoop-specs": "tsx ./src/api/specsgen.ts",
|
|
31
|
+
"build-core-sdk": "npx openapi-typescript-codegen --input ./openapi/core_service.yaml --output ./src/api/generated/core --client fetch",
|
|
32
|
+
"build-swoop-sdk": "npm run generate-swoop-specs && npx openapi-typescript-codegen --input ./openapi/swoop_service.yaml --output ./src/api/generated/swoop --client fetch --postfixModels Swoop --request ./src/api/templates/request.ts",
|
|
33
|
+
"prebuild": "npm run build-imports && npm run build-sdk",
|
|
34
|
+
"build-sdk-exports": "tsx ./src/api/gen.ts",
|
|
35
|
+
"build-sdk": "npm run build-core-sdk && npm run build-swoop-sdk && npm run build-sdk-exports"
|
|
36
|
+
},
|
|
37
|
+
"author": "",
|
|
38
|
+
"license": "ISC",
|
|
39
|
+
"description": "",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@apidevtools/swagger-parser": "^12.0.0",
|
|
42
|
+
"@emotion/react": "^11.14.0",
|
|
43
|
+
"@emotion/styled": "^11.14.1",
|
|
44
|
+
"@jsonforms/core": "^3.5.1",
|
|
45
|
+
"@jsonforms/material-renderers": "^3.5.1",
|
|
46
|
+
"@jsonforms/react": "^3.5.1",
|
|
47
|
+
"ajv": "^8.17.1",
|
|
48
|
+
"js-yaml": "^4.1.1",
|
|
49
|
+
"lodash.merge": "^4.6.2",
|
|
50
|
+
"openapi-ts": "^0.3.4",
|
|
51
|
+
"react": "^19.0.0",
|
|
52
|
+
"rimraf": "^6.0.1",
|
|
53
|
+
"swoop-common": "^2.1.55"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@apidevtools/swagger-cli": "^4.0.4",
|
|
57
|
+
"@hey-api/openapi-ts": "^0.80.2",
|
|
58
|
+
"@types/js-yaml": "^4.0.9",
|
|
59
|
+
"@types/lodash.merge": "^4.6.9",
|
|
60
|
+
"@types/node": "^24.0.14",
|
|
61
|
+
"@types/react": "^19",
|
|
62
|
+
"openapi-typescript-codegen": "^0.29.0",
|
|
63
|
+
"tsx": "^4.20.3",
|
|
64
|
+
"typescript": "^5.8.3"
|
|
65
|
+
}
|
|
61
66
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AssignedPassenger } from './AssignedPassenger';
|
|
2
|
-
import type { Price } from './Price';
|
|
3
|
-
import type { Title } from './Title';
|
|
4
|
-
export type Discount = {
|
|
5
|
-
name: Title;
|
|
6
|
-
reason: string;
|
|
7
|
-
type: string;
|
|
8
|
-
price: Price;
|
|
9
|
-
assignedPassenger: AssignedPassenger;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AssignedPassenger } from './AssignedPassenger';
|
|
2
|
-
import type { Price } from './Price';
|
|
3
|
-
import type { Title } from './Title';
|
|
4
|
-
export type Fee = {
|
|
5
|
-
name: Title;
|
|
6
|
-
reason: string;
|
|
7
|
-
type: string;
|
|
8
|
-
price: Price;
|
|
9
|
-
assignedPassenger: AssignedPassenger;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|