@companieshouse/api-sdk-node 2.0.16 → 2.0.19
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/http/request-client.js.map +1 -1
- package/dist/mapping/mapping.d.ts +4 -2
- package/dist/mapping/mapping.js +4 -4
- package/dist/mapping/mapping.js.map +1 -1
- package/dist/services/order/basket/mapping.d.ts +8 -3
- package/dist/services/order/basket/mapping.js +7 -34
- package/dist/services/order/basket/mapping.js.map +1 -1
- package/dist/services/order/basket/service.d.ts +7 -2
- package/dist/services/order/basket/service.js +49 -38
- package/dist/services/order/basket/service.js.map +1 -1
- package/dist/services/order/basket/types.d.ts +42 -83
- package/dist/services/order/basket/types.js +0 -3
- package/dist/services/order/basket/types.js.map +1 -1
- package/dist/services/order/certificates/index.d.ts +1 -1
- package/dist/services/order/certificates/index.js +2 -2
- package/dist/services/order/certificates/index.js.map +1 -1
- package/dist/services/order/certificates/service.d.ts +1 -1
- package/dist/services/order/certificates/service.js +2 -2
- package/dist/services/order/certificates/service.js.map +1 -1
- package/dist/services/order/certificates/types.d.ts +2 -3
- package/dist/services/order/certificates/types.js +0 -3
- package/dist/services/order/certificates/types.js.map +1 -1
- package/dist/services/order/certified-copies/index.d.ts +1 -1
- package/dist/services/order/certified-copies/index.js +2 -2
- package/dist/services/order/certified-copies/index.js.map +1 -1
- package/dist/services/order/certified-copies/service.d.ts +2 -1
- package/dist/services/order/certified-copies/service.js +11 -4
- package/dist/services/order/certified-copies/service.js.map +1 -1
- package/dist/services/order/certified-copies/types.d.ts +50 -6
- package/dist/services/order/certified-copies/types.js +0 -3
- package/dist/services/order/certified-copies/types.js.map +1 -1
- package/dist/services/order/checkout/service.d.ts +1 -0
- package/dist/services/order/checkout/service.js +9 -1
- package/dist/services/order/checkout/service.js.map +1 -1
- package/dist/services/order/checkout/types.d.ts +1 -241
- package/dist/services/order/checkout/types.js +0 -3
- package/dist/services/order/checkout/types.js.map +1 -1
- package/dist/services/order/mid/service.d.ts +2 -1
- package/dist/services/order/mid/service.js +13 -8
- package/dist/services/order/mid/service.js.map +1 -1
- package/dist/services/order/mid/types.d.ts +6 -6
- package/dist/services/order/mid/types.js +0 -3
- package/dist/services/order/mid/types.js.map +1 -1
- package/dist/services/order/order/service.d.ts +1 -0
- package/dist/services/order/order/service.js +10 -2
- package/dist/services/order/order/service.js.map +1 -1
- package/dist/services/order/order/types.d.ts +3 -175
- package/dist/services/order/order/types.js +0 -3
- package/dist/services/order/order/types.js.map +1 -1
- package/dist/services/overseas-entities/mapping.js +4 -2
- package/dist/services/overseas-entities/mapping.js.map +1 -1
- package/package.json +1 -1
- package/dist/services/order/certified-copies/mapping.d.ts +0 -5
- package/dist/services/order/certified-copies/mapping.js +0 -32
- package/dist/services/order/certified-copies/mapping.js.map +0 -1
- package/dist/services/order/mid/mapping.d.ts +0 -5
- package/dist/services/order/mid/mapping.js +0 -54
- package/dist/services/order/mid/mapping.js.map +0 -1
- package/dist/services/order/order/mapping.d.ts +0 -15
- package/dist/services/order/order/mapping.js +0 -172
- package/dist/services/order/order/mapping.js.map +0 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { ItemOptions as MissingImageDeliveryItemOptions, ItemOptionsResource as MissingImageDeliveryItemOptionsResource } from "../mid/types";
|
|
2
|
+
import { ItemOptions as CertificateItemOptions, ItemOptionsResource as CertificateItemOptionsResource } from "../certificates/types";
|
|
3
|
+
import { ItemOptions as CertifiedCopyItemOptions, ItemOptionsResource as CertifiedCopyItemOptionsResource } from "../certified-copies/types";
|
|
1
4
|
/**
|
|
2
5
|
* Order is the interface used within this SDK.
|
|
3
6
|
*/
|
|
@@ -57,89 +60,6 @@ export interface ItemCosts {
|
|
|
57
60
|
itemCost: string;
|
|
58
61
|
productType: string;
|
|
59
62
|
}
|
|
60
|
-
export interface CertificateItemOptions {
|
|
61
|
-
certificateType: string;
|
|
62
|
-
companyType: string;
|
|
63
|
-
deliveryTimescale: string;
|
|
64
|
-
includeEmailCopy?: boolean;
|
|
65
|
-
designatedMemberDetails: {
|
|
66
|
-
includeAddress?: boolean;
|
|
67
|
-
includeAppointmentDate?: boolean;
|
|
68
|
-
includeBasicInformation?: boolean;
|
|
69
|
-
includeCountryOfResidence?: boolean;
|
|
70
|
-
includeDobType?: string;
|
|
71
|
-
};
|
|
72
|
-
deliveryMethod: string;
|
|
73
|
-
generalPartnerDetails: {
|
|
74
|
-
includeBasicInformation?: boolean;
|
|
75
|
-
};
|
|
76
|
-
includeGeneralNatureOfBusinessInformation?: boolean;
|
|
77
|
-
includeGoodStandingInformation?: boolean;
|
|
78
|
-
includeCompanyObjectsInformation?: boolean;
|
|
79
|
-
limitedPartnerDetails: {
|
|
80
|
-
includeBasicInformation?: boolean;
|
|
81
|
-
};
|
|
82
|
-
memberDetails: {
|
|
83
|
-
includeAddress?: boolean;
|
|
84
|
-
includeAppointmentDate?: boolean;
|
|
85
|
-
includeBasicInformation?: boolean;
|
|
86
|
-
includeCountryOfResidence?: boolean;
|
|
87
|
-
includeDobType?: string;
|
|
88
|
-
};
|
|
89
|
-
principalPlaceOfBusinessDetails: {
|
|
90
|
-
includeAddressRecordsType?: string;
|
|
91
|
-
};
|
|
92
|
-
registeredOfficeAddressDetails: {
|
|
93
|
-
includeAddressRecordsType?: string;
|
|
94
|
-
};
|
|
95
|
-
secretaryDetails: {
|
|
96
|
-
includeBasicInformation?: boolean;
|
|
97
|
-
includeAddress?: boolean;
|
|
98
|
-
includeAppointmentDate?: boolean;
|
|
99
|
-
includeCountryOfResidence?: boolean;
|
|
100
|
-
includeNationality?: boolean;
|
|
101
|
-
includeOccupation?: boolean;
|
|
102
|
-
includeDobType?: string;
|
|
103
|
-
};
|
|
104
|
-
directorDetails: {
|
|
105
|
-
includeBasicInformation?: boolean;
|
|
106
|
-
includeAddress?: boolean;
|
|
107
|
-
includeAppointmentDate?: boolean;
|
|
108
|
-
includeCountryOfResidence?: boolean;
|
|
109
|
-
includeNationality?: boolean;
|
|
110
|
-
includeOccupation?: boolean;
|
|
111
|
-
includeDobType?: string;
|
|
112
|
-
};
|
|
113
|
-
forename: string;
|
|
114
|
-
surname: string;
|
|
115
|
-
liquidatorsDetails: {
|
|
116
|
-
includeBasicInformation?: boolean;
|
|
117
|
-
};
|
|
118
|
-
companyStatus: string;
|
|
119
|
-
administratorsDetails: {
|
|
120
|
-
includeBasicInformation?: boolean;
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
export interface CertifiedCopyItemOptions {
|
|
124
|
-
deliveryTimescale: string;
|
|
125
|
-
deliveryMethod: string;
|
|
126
|
-
filingHistoryDocuments: FilingHistoryItemOptions[];
|
|
127
|
-
}
|
|
128
|
-
export interface FilingHistoryItemOptions {
|
|
129
|
-
filingHistoryDate: string;
|
|
130
|
-
filingHistoryDescription: string;
|
|
131
|
-
filingHistoryId: string;
|
|
132
|
-
filingHistoryType: string;
|
|
133
|
-
filingHistoryDescriptionValues: Record<string, any>;
|
|
134
|
-
filingHistoryCost: string;
|
|
135
|
-
}
|
|
136
|
-
export interface MissingImageDeliveryItemOptions {
|
|
137
|
-
filingHistoryDate: string;
|
|
138
|
-
filingHistoryDescription: string;
|
|
139
|
-
filingHistoryId: string;
|
|
140
|
-
filingHistoryType: string;
|
|
141
|
-
filingHistoryDescriptionValues: Record<string, any>;
|
|
142
|
-
}
|
|
143
63
|
export declare type ItemOptions = CertificateItemOptions | CertifiedCopyItemOptions | MissingImageDeliveryItemOptions;
|
|
144
64
|
/**
|
|
145
65
|
* OrderResource is what is returned from the api.
|
|
@@ -200,96 +120,4 @@ export interface ItemCostsResource {
|
|
|
200
120
|
item_cost: string;
|
|
201
121
|
product_type: string;
|
|
202
122
|
}
|
|
203
|
-
export interface CertificateItemOptionsResource {
|
|
204
|
-
certificate_type: string;
|
|
205
|
-
company_type: string;
|
|
206
|
-
delivery_timescale: string;
|
|
207
|
-
include_email_copy?: boolean;
|
|
208
|
-
delivery_method: string;
|
|
209
|
-
designated_member_details: {
|
|
210
|
-
include_address?: boolean;
|
|
211
|
-
include_appointment_date?: boolean;
|
|
212
|
-
include_basic_information?: boolean;
|
|
213
|
-
include_country_of_residence?: boolean;
|
|
214
|
-
include_dob_type?: string;
|
|
215
|
-
};
|
|
216
|
-
include_general_nature_of_business_information?: boolean;
|
|
217
|
-
include_good_standing_information?: boolean;
|
|
218
|
-
include_company_objects_information?: boolean;
|
|
219
|
-
general_partner_details: {
|
|
220
|
-
include_basic_information?: boolean;
|
|
221
|
-
};
|
|
222
|
-
limited_partner_details: {
|
|
223
|
-
include_basic_information?: boolean;
|
|
224
|
-
};
|
|
225
|
-
member_details: {
|
|
226
|
-
include_address?: boolean;
|
|
227
|
-
include_appointment_date?: boolean;
|
|
228
|
-
include_basic_information?: boolean;
|
|
229
|
-
include_country_of_residence?: boolean;
|
|
230
|
-
include_dob_type?: string;
|
|
231
|
-
};
|
|
232
|
-
principal_place_of_business_details: {
|
|
233
|
-
include_address_records_type?: string;
|
|
234
|
-
};
|
|
235
|
-
registered_office_address_details: {
|
|
236
|
-
include_address_records_type?: string;
|
|
237
|
-
};
|
|
238
|
-
secretary_details: {
|
|
239
|
-
include_basic_information?: boolean;
|
|
240
|
-
include_address?: boolean;
|
|
241
|
-
include_appointment_date?: boolean;
|
|
242
|
-
include_country_of_residence?: boolean;
|
|
243
|
-
include_nationality?: boolean;
|
|
244
|
-
include_occupation?: boolean;
|
|
245
|
-
include_dob_type?: string;
|
|
246
|
-
};
|
|
247
|
-
director_details: {
|
|
248
|
-
include_basic_information?: boolean;
|
|
249
|
-
include_address?: boolean;
|
|
250
|
-
include_appointment_date?: boolean;
|
|
251
|
-
include_country_of_residence?: boolean;
|
|
252
|
-
include_nationality?: boolean;
|
|
253
|
-
include_occupation?: boolean;
|
|
254
|
-
include_dob_type?: string;
|
|
255
|
-
};
|
|
256
|
-
forename: string;
|
|
257
|
-
surname: string;
|
|
258
|
-
liquidators_details: {
|
|
259
|
-
include_basic_information?: boolean;
|
|
260
|
-
};
|
|
261
|
-
company_status: string;
|
|
262
|
-
administrators_details: {
|
|
263
|
-
include_basic_information?: boolean;
|
|
264
|
-
};
|
|
265
|
-
}
|
|
266
|
-
export interface CertifiedCopyItemOptionsResource {
|
|
267
|
-
delivery_timescale: string;
|
|
268
|
-
delivery_method: string;
|
|
269
|
-
filing_history_documents: FilingHistoryItemOptionsResource[];
|
|
270
|
-
}
|
|
271
|
-
export interface FilingHistoryItemOptionsResource {
|
|
272
|
-
filing_history_date: string;
|
|
273
|
-
filing_history_description: string;
|
|
274
|
-
filing_history_id: string;
|
|
275
|
-
filing_history_type: string;
|
|
276
|
-
filing_history_description_values: Record<string, any>;
|
|
277
|
-
filing_history_cost: string;
|
|
278
|
-
}
|
|
279
|
-
export interface MissingImageDeliveryItemOptionsResource {
|
|
280
|
-
filing_history_date: string;
|
|
281
|
-
filing_history_description: string;
|
|
282
|
-
filing_history_id: string;
|
|
283
|
-
filing_history_type: string;
|
|
284
|
-
filing_history_description_values: Record<string, any>;
|
|
285
|
-
}
|
|
286
123
|
export declare type ItemOptionsResource = CertificateItemOptionsResource | CertifiedCopyItemOptionsResource | MissingImageDeliveryItemOptionsResource;
|
|
287
|
-
export interface DirectorOrSecretaryDetails {
|
|
288
|
-
includeBasicInformation?: boolean;
|
|
289
|
-
includeAddress?: boolean;
|
|
290
|
-
includeAppointmentDate?: boolean;
|
|
291
|
-
includeCountryOfResidence?: boolean;
|
|
292
|
-
includeNationality?: boolean;
|
|
293
|
-
includeOccupation?: boolean;
|
|
294
|
-
includeDobType?: string;
|
|
295
|
-
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/services/order/order/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/services/order/order/types.ts"],"names":[],"mappings":""}
|
|
@@ -96,7 +96,8 @@ const mapDueDiligence = (dueDiligence) => {
|
|
|
96
96
|
const identity_date = convertDateToIsoDateString(identityDate.day, identityDate.month, identityDate.year);
|
|
97
97
|
return Object.assign(Object.assign({}, dueDiligence), { identity_date });
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
// This object is optionally present - API will ignore it if sent as null but not as {}
|
|
100
|
+
return null;
|
|
100
101
|
};
|
|
101
102
|
/**
|
|
102
103
|
* Convert the Overseas Entity Due Diligence data into the Resource format that the API expects
|
|
@@ -111,7 +112,8 @@ const mapOverseasEntityDueDiligence = (oeDueDiligence) => {
|
|
|
111
112
|
return (identityDateResource)
|
|
112
113
|
? Object.assign(Object.assign({}, rest), { identity_date: identityDateResource }) : Object.assign({}, rest);
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
+
// This object is optionally present - API will ignore it if sent as null but not as {}
|
|
116
|
+
return null;
|
|
115
117
|
};
|
|
116
118
|
/**
|
|
117
119
|
* Convert the Trust Data into the Resource format which the API expects
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../src/services/overseas-entities/mapping.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AA0BO,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAA0B,EAAE;IAC9E,OAAO;QACH,SAAS,oBAAO,IAAI,CAAC,SAAS,CAAE;QAChC,MAAM,oBAAO,IAAI,CAAC,MAAM,CAAE;QAC1B,aAAa,EAAE,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC;QAClD,6BAA6B,EAAE,6BAA6B,CAAC,IAAI,CAAC,6BAA6B,CAAC;QAChG,2BAA2B,EAAE,IAAI,CAAC,2BAA2B;QAC7D,4BAA4B,EAAE,6BAA6B,CAAC,IAAI,CAAC,4BAA4B,CAAC;QAC9F,2BAA2B,EAAE,4BAA4B,CAAC,IAAI,CAAC,2BAA2B,CAAC;QAC3F,gDAAgD,EAAE,6BAA6B,CAAC,IAAI,CAAC,gDAAgD,CAAC;QACtI,4BAA4B,EAAE,6BAA6B,CAAC,IAAI,CAAC,4BAA4B,CAAC;QAC9F,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+0,0 @@
|
|
|
1
|
-
import { CertifiedCopyItem, CertifiedCopyItemResource, ItemOptions, ItemOptionsResource } from "./types";
|
|
2
|
-
export default class CertifiedCopyMapping {
|
|
3
|
-
static mapCertifiedItemResourceToCertifiedCopyItem(body: CertifiedCopyItemResource): CertifiedCopyItem;
|
|
4
|
-
static mapItemOptionsResourceToItemOptions(itemOptionsResouce: ItemOptionsResource): ItemOptions;
|
|
5
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class CertifiedCopyMapping {
|
|
4
|
-
static mapCertifiedItemResourceToCertifiedCopyItem(body) {
|
|
5
|
-
const certifiedCopyItem = {
|
|
6
|
-
companyNumber: body.company_number,
|
|
7
|
-
companyName: body.company_name,
|
|
8
|
-
itemOptions: this.mapItemOptionsResourceToItemOptions(body.item_options),
|
|
9
|
-
totalItemCost: body.total_item_cost
|
|
10
|
-
};
|
|
11
|
-
return certifiedCopyItem;
|
|
12
|
-
}
|
|
13
|
-
;
|
|
14
|
-
static mapItemOptionsResourceToItemOptions(itemOptionsResouce) {
|
|
15
|
-
const itemOptions = {
|
|
16
|
-
deliveryTimescale: itemOptionsResouce.delivery_timescale,
|
|
17
|
-
deliveryMethod: itemOptionsResouce.delivery_method,
|
|
18
|
-
filingHistoryDocuments: itemOptionsResouce.filing_history_documents.map((fhd) => ({
|
|
19
|
-
filingHistoryDate: fhd.filing_history_date,
|
|
20
|
-
filingHistoryDescription: fhd.filing_history_description,
|
|
21
|
-
filingHistoryId: fhd.filing_history_id,
|
|
22
|
-
filingHistoryType: fhd.filing_history_type,
|
|
23
|
-
filingHistoryDescriptionValues: fhd.filing_history_description_values,
|
|
24
|
-
filingHistoryCost: fhd.filing_history_cost
|
|
25
|
-
}))
|
|
26
|
-
};
|
|
27
|
-
return itemOptions;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.default = CertifiedCopyMapping;
|
|
31
|
-
;
|
|
32
|
-
//# sourceMappingURL=mapping.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../../src/services/order/certified-copies/mapping.ts"],"names":[],"mappings":";;AAKA,MAAqB,oBAAoB;IAC9B,MAAM,CAAC,2CAA2C,CAAE,IAA+B;QACtF,MAAM,iBAAiB,GAAsB;YACzC,aAAa,EAAE,IAAI,CAAC,cAAc;YAClC,WAAW,EAAE,IAAI,CAAC,YAAY;YAC9B,WAAW,EAAE,IAAI,CAAC,mCAAmC,CAAC,IAAI,CAAC,YAAY,CAAC;YACxE,aAAa,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;QACF,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAAA,CAAC;IAEK,MAAM,CAAC,mCAAmC,CAAE,kBAAuC;QACtF,MAAM,WAAW,GAAgB;YAC7B,iBAAiB,EAAE,kBAAkB,CAAC,kBAAkB;YACxD,cAAc,EAAE,kBAAkB,CAAC,eAAe;YAClD,sBAAsB,EAAE,kBAAkB,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC,GAAmC,EAAE,EAAE,CAAC,CAAC;gBAC9G,iBAAiB,EAAE,GAAG,CAAC,mBAAmB;gBAC1C,wBAAwB,EAAE,GAAG,CAAC,0BAA0B;gBACxD,eAAe,EAAE,GAAG,CAAC,iBAAiB;gBACtC,iBAAiB,EAAE,GAAG,CAAC,mBAAmB;gBAC1C,8BAA8B,EAAE,GAAG,CAAC,iCAAiC;gBACrE,iBAAiB,EAAE,GAAG,CAAC,mBAAmB;aAC7C,CAAC,CAAC;SACN,CAAC;QACF,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ;AA1BD,uCA0BC;AAAA,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { MidItemResource, MidItemPostRequest, MidItemRequestResource, MidItem } from "./types";
|
|
2
|
-
export default class MidMapping {
|
|
3
|
-
static mapMidItemRequestToMidItemRequestResource(midItemRequest: MidItemPostRequest): MidItemRequestResource;
|
|
4
|
-
static mapMidItemResourceToMidItem(body: MidItemResource): MidItem;
|
|
5
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class MidMapping {
|
|
4
|
-
static mapMidItemRequestToMidItemRequestResource(midItemRequest) {
|
|
5
|
-
const itemOptions = midItemRequest.itemOptions;
|
|
6
|
-
return {
|
|
7
|
-
company_number: midItemRequest.companyNumber,
|
|
8
|
-
customer_reference: midItemRequest.customerReference,
|
|
9
|
-
item_options: {
|
|
10
|
-
filing_history_id: itemOptions.filingHistoryId
|
|
11
|
-
},
|
|
12
|
-
quantity: midItemRequest.quantity
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
;
|
|
16
|
-
static mapMidItemResourceToMidItem(body) {
|
|
17
|
-
const io = body.item_options;
|
|
18
|
-
return {
|
|
19
|
-
companyName: body.company_name,
|
|
20
|
-
companyNumber: body.company_number,
|
|
21
|
-
customerReference: body.customer_reference,
|
|
22
|
-
description: body.description,
|
|
23
|
-
descriptionIdentifier: body.description_identifier,
|
|
24
|
-
descriptionValues: body.description_values,
|
|
25
|
-
etag: body.etag,
|
|
26
|
-
id: body.id,
|
|
27
|
-
itemCosts: body.item_costs.map((i) => ({
|
|
28
|
-
calculatedCost: i === null || i === void 0 ? void 0 : i.calculated_cost,
|
|
29
|
-
discountApplied: i === null || i === void 0 ? void 0 : i.discount_applied,
|
|
30
|
-
itemCost: i === null || i === void 0 ? void 0 : i.item_cost,
|
|
31
|
-
productType: i === null || i === void 0 ? void 0 : i.product_type
|
|
32
|
-
})),
|
|
33
|
-
itemOptions: {
|
|
34
|
-
filingHistoryDate: body.item_options.filing_history_date,
|
|
35
|
-
filingHistoryDescription: body.item_options.filing_history_description,
|
|
36
|
-
filingHistoryDescriptionValues: body.item_options.filing_history_description_values,
|
|
37
|
-
filingHistoryId: body.item_options.filing_history_id,
|
|
38
|
-
filingHistoryType: body.item_options.filing_history_type
|
|
39
|
-
},
|
|
40
|
-
kind: body.kind,
|
|
41
|
-
links: {
|
|
42
|
-
self: body.links.self
|
|
43
|
-
},
|
|
44
|
-
postageCost: body.postage_cost,
|
|
45
|
-
postalDelivery: body.postal_delivery,
|
|
46
|
-
quantity: body.quantity,
|
|
47
|
-
totalItemCost: body.total_item_cost
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
;
|
|
51
|
-
}
|
|
52
|
-
exports.default = MidMapping;
|
|
53
|
-
;
|
|
54
|
-
//# sourceMappingURL=mapping.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../../src/services/order/mid/mapping.ts"],"names":[],"mappings":";;AAUA,MAAqB,UAAU;IACpB,MAAM,CAAC,yCAAyC,CAAE,cAAkC;QACvF,MAAM,WAAW,GAAuB,cAAc,CAAC,WAAW,CAAC;QAEnE,OAAO;YACH,cAAc,EAAE,cAAc,CAAC,aAAa;YAC5C,kBAAkB,EAAE,cAAc,CAAC,iBAAiB;YACpD,YAAY,EAAE;gBACV,iBAAiB,EAAE,WAAW,CAAC,eAAe;aACjD;YACD,QAAQ,EAAE,cAAc,CAAC,QAAQ;SACpC,CAAC;IACN,CAAC;IAAA,CAAC;IAEK,MAAM,CAAC,2BAA2B,CAAE,IAAqB;QAC5D,MAAM,EAAE,GAAG,IAAI,CAAC,YAAmC,CAAC;QAEpD,OAAO;YACH,WAAW,EAAE,IAAI,CAAC,YAAY;YAC9B,aAAa,EAAE,IAAI,CAAC,cAAc;YAClC,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;YAC1C,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,qBAAqB,EAAE,IAAI,CAAC,sBAAsB;YAClD,iBAAiB,EAAE,IAAI,CAAC,kBAAkB;YAC1C,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAoB,EAAE,EAAE,CAAC,CAAC;gBACtD,cAAc,EAAE,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,eAAe;gBAClC,eAAe,EAAE,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,gBAAgB;gBACpC,QAAQ,EAAE,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,SAAS;gBACtB,WAAW,EAAE,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,YAAY;aAC/B,CAAC,CAAC;YACH,WAAW,EAAE;gBACT,iBAAiB,EAAE,IAAI,CAAC,YAAY,CAAC,mBAAmB;gBACxD,wBAAwB,EAAE,IAAI,CAAC,YAAY,CAAC,0BAA0B;gBACtE,8BAA8B,EAAE,IAAI,CAAC,YAAY,CAAC,iCAAiC;gBACnF,eAAe,EAAE,IAAI,CAAC,YAAY,CAAC,iBAAiB;gBACpD,iBAAiB,EAAE,IAAI,CAAC,YAAY,CAAC,mBAAmB;aAC3D;YACD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE;gBACH,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;aACxB;YACD,WAAW,EAAE,IAAI,CAAC,YAAY;YAC9B,cAAc,EAAE,IAAI,CAAC,eAAe;YACpC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,eAAe;SACtC,CAAC;IACN,CAAC;IAAA,CAAC;CACL;AAjDD,6BAiDC;AAAA,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Order, OrderResource } from "./types";
|
|
2
|
-
import { MemberDetails } from "../certificates";
|
|
3
|
-
export default class OrderMapping {
|
|
4
|
-
static mapOrderResourceToOrder(orderResource: OrderResource): Order;
|
|
5
|
-
private static mapItemResourceToItem;
|
|
6
|
-
private static removeEmptyObjects;
|
|
7
|
-
private static mapItemOptionsResourceToItemOptions;
|
|
8
|
-
static mapMemberDetails: (member_details: {
|
|
9
|
-
include_address?: boolean;
|
|
10
|
-
include_appointment_date?: boolean;
|
|
11
|
-
include_basic_information?: boolean;
|
|
12
|
-
include_country_of_residence?: boolean;
|
|
13
|
-
include_dob_type?: string;
|
|
14
|
-
}) => MemberDetails;
|
|
15
|
-
}
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class OrderMapping {
|
|
4
|
-
static mapOrderResourceToOrder(orderResource) {
|
|
5
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6
|
-
return {
|
|
7
|
-
deliveryDetails: {
|
|
8
|
-
addressLine1: (_a = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _a === void 0 ? void 0 : _a.address_line_1,
|
|
9
|
-
addressLine2: (_b = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _b === void 0 ? void 0 : _b.address_line_2,
|
|
10
|
-
country: (_c = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _c === void 0 ? void 0 : _c.country,
|
|
11
|
-
forename: (_d = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _d === void 0 ? void 0 : _d.forename,
|
|
12
|
-
locality: (_e = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _e === void 0 ? void 0 : _e.locality,
|
|
13
|
-
poBox: (_f = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _f === void 0 ? void 0 : _f.po_box,
|
|
14
|
-
postalCode: (_g = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _g === void 0 ? void 0 : _g.postal_code,
|
|
15
|
-
region: (_h = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _h === void 0 ? void 0 : _h.region,
|
|
16
|
-
surname: (_j = orderResource === null || orderResource === void 0 ? void 0 : orderResource.delivery_details) === null || _j === void 0 ? void 0 : _j.surname
|
|
17
|
-
},
|
|
18
|
-
items: orderResource.items.map((item) => {
|
|
19
|
-
return this.mapItemResourceToItem(item);
|
|
20
|
-
}),
|
|
21
|
-
etag: orderResource.etag,
|
|
22
|
-
kind: orderResource.kind,
|
|
23
|
-
links: {
|
|
24
|
-
self: orderResource.links.self
|
|
25
|
-
},
|
|
26
|
-
orderedAt: orderResource.ordered_at,
|
|
27
|
-
orderedBy: {
|
|
28
|
-
email: orderResource.ordered_by.email,
|
|
29
|
-
id: orderResource.ordered_by.id
|
|
30
|
-
},
|
|
31
|
-
paymentReference: orderResource.payment_reference,
|
|
32
|
-
reference: orderResource.reference,
|
|
33
|
-
totalOrderCost: orderResource.total_order_cost
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
static mapItemResourceToItem(itemResource) {
|
|
37
|
-
return {
|
|
38
|
-
companyName: itemResource.company_name,
|
|
39
|
-
companyNumber: itemResource.company_number,
|
|
40
|
-
customerReference: itemResource.customer_reference,
|
|
41
|
-
description: itemResource.description,
|
|
42
|
-
descriptionIdentifier: itemResource.description_identifier,
|
|
43
|
-
descriptionValues: itemResource.description_values,
|
|
44
|
-
etag: itemResource.etag,
|
|
45
|
-
id: itemResource.id,
|
|
46
|
-
itemCosts: itemResource.item_costs.map((i) => ({
|
|
47
|
-
calculatedCost: i === null || i === void 0 ? void 0 : i.calculated_cost,
|
|
48
|
-
discountApplied: i === null || i === void 0 ? void 0 : i.discount_applied,
|
|
49
|
-
itemCost: i === null || i === void 0 ? void 0 : i.item_cost,
|
|
50
|
-
productType: i === null || i === void 0 ? void 0 : i.product_type
|
|
51
|
-
})),
|
|
52
|
-
itemOptions: this.mapItemOptionsResourceToItemOptions(itemResource.item_options, itemResource.kind),
|
|
53
|
-
itemUri: itemResource.item_uri,
|
|
54
|
-
kind: itemResource.kind,
|
|
55
|
-
links: {
|
|
56
|
-
self: itemResource.links.self
|
|
57
|
-
},
|
|
58
|
-
postageCost: itemResource.postage_cost,
|
|
59
|
-
postalDelivery: itemResource.postal_delivery,
|
|
60
|
-
quantity: itemResource.quantity,
|
|
61
|
-
satisfiedAt: itemResource.satisfied_at,
|
|
62
|
-
status: itemResource.status,
|
|
63
|
-
totalItemCost: itemResource.total_item_cost
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
static removeEmptyObjects(input) {
|
|
67
|
-
return Object.values(input).some((value) => value !== undefined) ? input : undefined;
|
|
68
|
-
}
|
|
69
|
-
static mapItemOptionsResourceToItemOptions(itemResource, kind) {
|
|
70
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
71
|
-
if (kind === "item#certificate") {
|
|
72
|
-
itemResource = itemResource;
|
|
73
|
-
const directorDetails = this.removeEmptyObjects({
|
|
74
|
-
includeBasicInformation: (_a = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _a === void 0 ? void 0 : _a.include_basic_information,
|
|
75
|
-
includeAddress: (_b = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _b === void 0 ? void 0 : _b.include_address,
|
|
76
|
-
includeAppointmentDate: (_c = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _c === void 0 ? void 0 : _c.include_appointment_date,
|
|
77
|
-
includeCountryOfResidence: (_d = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _d === void 0 ? void 0 : _d.include_country_of_residence,
|
|
78
|
-
includeNationality: (_e = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _e === void 0 ? void 0 : _e.include_nationality,
|
|
79
|
-
includeOccupation: (_f = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _f === void 0 ? void 0 : _f.include_occupation,
|
|
80
|
-
includeDobType: (_g = itemResource === null || itemResource === void 0 ? void 0 : itemResource.director_details) === null || _g === void 0 ? void 0 : _g.include_dob_type
|
|
81
|
-
});
|
|
82
|
-
const secretaryDetails = this.removeEmptyObjects({
|
|
83
|
-
includeBasicInformation: (_h = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _h === void 0 ? void 0 : _h.include_basic_information,
|
|
84
|
-
includeAddress: (_j = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _j === void 0 ? void 0 : _j.include_address,
|
|
85
|
-
includeAppointmentDate: (_k = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _k === void 0 ? void 0 : _k.include_appointment_date,
|
|
86
|
-
includeCountryOfResidence: (_l = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _l === void 0 ? void 0 : _l.include_country_of_residence,
|
|
87
|
-
includeNationality: (_m = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _m === void 0 ? void 0 : _m.include_nationality,
|
|
88
|
-
includeOccupation: (_o = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _o === void 0 ? void 0 : _o.include_occupation,
|
|
89
|
-
includeDobType: (_p = itemResource === null || itemResource === void 0 ? void 0 : itemResource.secretary_details) === null || _p === void 0 ? void 0 : _p.include_dob_type
|
|
90
|
-
});
|
|
91
|
-
const memberDetails = OrderMapping.mapMemberDetails(itemResource === null || itemResource === void 0 ? void 0 : itemResource.member_details);
|
|
92
|
-
const designatedMemberDetails = OrderMapping.mapMemberDetails(itemResource === null || itemResource === void 0 ? void 0 : itemResource.designated_member_details);
|
|
93
|
-
const registeredOfficeAddressDetails = this.removeEmptyObjects({
|
|
94
|
-
includeAddressRecordsType: (_q = itemResource === null || itemResource === void 0 ? void 0 : itemResource.registered_office_address_details) === null || _q === void 0 ? void 0 : _q.include_address_records_type
|
|
95
|
-
});
|
|
96
|
-
const principalPlaceOfBusinessDetails = this.removeEmptyObjects({
|
|
97
|
-
includeAddressRecordsType: (_r = itemResource === null || itemResource === void 0 ? void 0 : itemResource.principal_place_of_business_details) === null || _r === void 0 ? void 0 : _r.include_address_records_type
|
|
98
|
-
});
|
|
99
|
-
const generalPartnerDetails = this.removeEmptyObjects({
|
|
100
|
-
includeBasicInformation: (_s = itemResource === null || itemResource === void 0 ? void 0 : itemResource.general_partner_details) === null || _s === void 0 ? void 0 : _s.include_basic_information
|
|
101
|
-
});
|
|
102
|
-
const limitedPartnerDetails = this.removeEmptyObjects({
|
|
103
|
-
includeBasicInformation: (_t = itemResource === null || itemResource === void 0 ? void 0 : itemResource.limited_partner_details) === null || _t === void 0 ? void 0 : _t.include_basic_information
|
|
104
|
-
});
|
|
105
|
-
const liquidatorsDetails = this.removeEmptyObjects({
|
|
106
|
-
includeBasicInformation: (_u = itemResource === null || itemResource === void 0 ? void 0 : itemResource.liquidators_details) === null || _u === void 0 ? void 0 : _u.include_basic_information
|
|
107
|
-
});
|
|
108
|
-
const administratorsDetails = this.removeEmptyObjects({
|
|
109
|
-
includeBasicInformation: (_v = itemResource === null || itemResource === void 0 ? void 0 : itemResource.administrators_details) === null || _v === void 0 ? void 0 : _v.include_basic_information
|
|
110
|
-
});
|
|
111
|
-
return {
|
|
112
|
-
certificateType: itemResource.certificate_type,
|
|
113
|
-
companyType: itemResource.company_type,
|
|
114
|
-
deliveryTimescale: itemResource.delivery_timescale,
|
|
115
|
-
includeEmailCopy: itemResource.include_email_copy,
|
|
116
|
-
deliveryMethod: itemResource.delivery_method,
|
|
117
|
-
designatedMemberDetails: designatedMemberDetails,
|
|
118
|
-
includeGeneralNatureOfBusinessInformation: itemResource.include_general_nature_of_business_information,
|
|
119
|
-
includeGoodStandingInformation: itemResource.include_good_standing_information,
|
|
120
|
-
includeCompanyObjectsInformation: itemResource.include_company_objects_information,
|
|
121
|
-
generalPartnerDetails: generalPartnerDetails,
|
|
122
|
-
limitedPartnerDetails: limitedPartnerDetails,
|
|
123
|
-
memberDetails: memberDetails,
|
|
124
|
-
registeredOfficeAddressDetails: registeredOfficeAddressDetails,
|
|
125
|
-
principalPlaceOfBusinessDetails: principalPlaceOfBusinessDetails,
|
|
126
|
-
secretaryDetails: secretaryDetails,
|
|
127
|
-
directorDetails: directorDetails,
|
|
128
|
-
forename: itemResource.forename,
|
|
129
|
-
surname: itemResource.surname,
|
|
130
|
-
liquidatorsDetails: liquidatorsDetails,
|
|
131
|
-
companyStatus: itemResource.company_status,
|
|
132
|
-
administratorsDetails: administratorsDetails
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
else if (kind === "item#certified-copy") {
|
|
136
|
-
itemResource = itemResource;
|
|
137
|
-
return {
|
|
138
|
-
deliveryTimescale: itemResource.delivery_timescale,
|
|
139
|
-
deliveryMethod: itemResource.delivery_method,
|
|
140
|
-
filingHistoryDocuments: itemResource.filing_history_documents.map(f => ({
|
|
141
|
-
filingHistoryDate: f.filing_history_date,
|
|
142
|
-
filingHistoryDescription: f.filing_history_description,
|
|
143
|
-
filingHistoryId: f.filing_history_id,
|
|
144
|
-
filingHistoryType: f.filing_history_type,
|
|
145
|
-
filingHistoryDescriptionValues: f.filing_history_description_values,
|
|
146
|
-
filingHistoryCost: f.filing_history_cost
|
|
147
|
-
}))
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
itemResource = itemResource;
|
|
152
|
-
return {
|
|
153
|
-
filingHistoryDate: itemResource.filing_history_date,
|
|
154
|
-
filingHistoryDescription: itemResource.filing_history_description,
|
|
155
|
-
filingHistoryId: itemResource.filing_history_id,
|
|
156
|
-
filingHistoryType: itemResource.filing_history_type,
|
|
157
|
-
filingHistoryDescriptionValues: itemResource.filing_history_description_values
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
exports.default = OrderMapping;
|
|
163
|
-
OrderMapping.mapMemberDetails = (member_details) => {
|
|
164
|
-
return OrderMapping.removeEmptyObjects({
|
|
165
|
-
includeAddress: member_details === null || member_details === void 0 ? void 0 : member_details.include_address,
|
|
166
|
-
includeAppointmentDate: member_details === null || member_details === void 0 ? void 0 : member_details.include_appointment_date,
|
|
167
|
-
includeBasicInformation: member_details === null || member_details === void 0 ? void 0 : member_details.include_basic_information,
|
|
168
|
-
includeCountryOfResidence: member_details === null || member_details === void 0 ? void 0 : member_details.include_country_of_residence,
|
|
169
|
-
includeDobType: member_details === null || member_details === void 0 ? void 0 : member_details.include_dob_type
|
|
170
|
-
});
|
|
171
|
-
};
|
|
172
|
-
//# sourceMappingURL=mapping.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapping.js","sourceRoot":"","sources":["../../../../src/services/order/order/mapping.ts"],"names":[],"mappings":";;AAOA,MAAqB,YAAY;IACtB,MAAM,CAAC,uBAAuB,CAAE,aAA4B;;QAC/D,OAAO;YACH,eAAe,EAAE;gBACb,YAAY,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,cAAc;gBAC7D,YAAY,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,cAAc;gBAC7D,OAAO,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,OAAO;gBACjD,QAAQ,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,QAAQ;gBACnD,QAAQ,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,QAAQ;gBACnD,KAAK,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,MAAM;gBAC9C,UAAU,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,WAAW;gBACxD,MAAM,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,MAAM;gBAC/C,OAAO,QAAE,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,gBAAgB,0CAAE,OAAO;aACpD;YACD,KAAK,EAAE,aAAa,CAAC,K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