sysone-api-mapper 1.0.194 → 1.0.195
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.
|
@@ -25,6 +25,9 @@ export interface Api {
|
|
|
25
25
|
getPartyStatus: (partyCode: string) => Promise<any>;
|
|
26
26
|
getPhoneTypes: () => Promise<any>;
|
|
27
27
|
getAdressTypes: () => Promise<any>;
|
|
28
|
+
getOrganizationTypes: () => Promise<any>;
|
|
29
|
+
createIndividual: (data: any) => Promise<any>;
|
|
30
|
+
createOrganization: (data: any) => Promise<any>;
|
|
28
31
|
};
|
|
29
32
|
location: {
|
|
30
33
|
getCountries: () => Promise<any>;
|
|
@@ -18,4 +18,7 @@ export function partyAdapter(tenant: any): {
|
|
|
18
18
|
getPartyStatus: (partyCode: any) => Promise<any>;
|
|
19
19
|
getPhoneTypes: () => Promise<any>;
|
|
20
20
|
getAdressTypes: () => Promise<any>;
|
|
21
|
+
getOrganizationTypes: () => Promise<any>;
|
|
22
|
+
createIndividual: (data: any) => Promise<any>;
|
|
23
|
+
createOrganization: (data: any) => Promise<any>;
|
|
21
24
|
};
|
|
@@ -21,6 +21,9 @@ const partyAdapter = (tenant) => ({
|
|
|
21
21
|
postPartyOnboarding: (indentificationType, identificationValue, data) => (0, Mapper_1.apiMapper)("POST_PARTY_ONBOARDING", tenant, [indentificationType, identificationValue], data),
|
|
22
22
|
getPartyStatus: (partyCode) => (0, Mapper_1.apiMapper)("GET_PARTY_STATUS", tenant, [partyCode]),
|
|
23
23
|
getPhoneTypes: () => (0, Mapper_1.apiMapper)("GET_PHONE_TYPES", tenant),
|
|
24
|
-
getAdressTypes: () => (0, Mapper_1.apiMapper)("GET_ADDRESS_TYPES", tenant)
|
|
24
|
+
getAdressTypes: () => (0, Mapper_1.apiMapper)("GET_ADDRESS_TYPES", tenant),
|
|
25
|
+
getOrganizationTypes: () => (0, Mapper_1.apiMapper)("GET_ORGANIZATION_TYPES", tenant),
|
|
26
|
+
createIndividual: (data) => (0, Mapper_1.apiMapper)("CREATE_INDIVIDUAL", tenant, [], data),
|
|
27
|
+
createOrganization: (data) => (0, Mapper_1.apiMapper)("CREATE_ORGANIZATION", tenant, [], data)
|
|
25
28
|
});
|
|
26
29
|
exports.partyAdapter = partyAdapter;
|
|
@@ -3175,14 +3175,16 @@ export namespace tenantsConfig {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
export { cnp_54 as cnp };
|
|
3177
3177
|
}
|
|
3178
|
-
namespace
|
|
3178
|
+
namespace CREATE_INDIVIDUAL {
|
|
3179
3179
|
namespace _default_72 {
|
|
3180
3180
|
let url_127: string;
|
|
3181
3181
|
export { url_127 as url };
|
|
3182
|
-
import method_127 = methods.
|
|
3182
|
+
import method_127 = methods.POST;
|
|
3183
3183
|
export { method_127 as method };
|
|
3184
|
+
let source_80: string;
|
|
3185
|
+
export { source_80 as source };
|
|
3184
3186
|
export function requestMapper_127(request: any): {
|
|
3185
|
-
|
|
3187
|
+
mappedBody: any;
|
|
3186
3188
|
};
|
|
3187
3189
|
export { requestMapper_127 as requestMapper };
|
|
3188
3190
|
export function responseMapper_127(response: any): any;
|
|
@@ -3190,7 +3192,7 @@ export namespace tenantsConfig {
|
|
|
3190
3192
|
}
|
|
3191
3193
|
export { _default_72 as default };
|
|
3192
3194
|
}
|
|
3193
|
-
namespace
|
|
3195
|
+
namespace GET_ORGANIZATION_TYPES {
|
|
3194
3196
|
namespace _default_73 {
|
|
3195
3197
|
let url_128: string;
|
|
3196
3198
|
export { url_128 as url };
|
|
@@ -3205,14 +3207,16 @@ export namespace tenantsConfig {
|
|
|
3205
3207
|
}
|
|
3206
3208
|
export { _default_73 as default };
|
|
3207
3209
|
}
|
|
3208
|
-
namespace
|
|
3210
|
+
namespace CREATE_ORGANIZATION {
|
|
3209
3211
|
namespace _default_74 {
|
|
3210
3212
|
let url_129: string;
|
|
3211
3213
|
export { url_129 as url };
|
|
3212
|
-
import method_129 = methods.
|
|
3214
|
+
import method_129 = methods.POST;
|
|
3213
3215
|
export { method_129 as method };
|
|
3216
|
+
let source_81: string;
|
|
3217
|
+
export { source_81 as source };
|
|
3214
3218
|
export function requestMapper_129(request: any): {
|
|
3215
|
-
|
|
3219
|
+
mappedBody: any;
|
|
3216
3220
|
};
|
|
3217
3221
|
export { requestMapper_129 as requestMapper };
|
|
3218
3222
|
export function responseMapper_129(response: any): any;
|
|
@@ -3220,7 +3224,7 @@ export namespace tenantsConfig {
|
|
|
3220
3224
|
}
|
|
3221
3225
|
export { _default_74 as default };
|
|
3222
3226
|
}
|
|
3223
|
-
namespace
|
|
3227
|
+
namespace GET_INTERMEDIARY_STRUCTURE {
|
|
3224
3228
|
namespace _default_75 {
|
|
3225
3229
|
let url_130: string;
|
|
3226
3230
|
export { url_130 as url };
|
|
@@ -3234,24 +3238,24 @@ export namespace tenantsConfig {
|
|
|
3234
3238
|
export { responseMapper_130 as responseMapper };
|
|
3235
3239
|
}
|
|
3236
3240
|
export { _default_75 as default };
|
|
3237
|
-
|
|
3241
|
+
}
|
|
3242
|
+
namespace GET_INTERMEDIARY_BY_CODE {
|
|
3243
|
+
namespace _default_76 {
|
|
3238
3244
|
let url_131: string;
|
|
3239
3245
|
export { url_131 as url };
|
|
3240
3246
|
import method_131 = methods.GET;
|
|
3241
3247
|
export { method_131 as method };
|
|
3242
3248
|
export function requestMapper_131(request: any): {
|
|
3243
|
-
mappedParams:
|
|
3244
|
-
roles: any;
|
|
3245
|
-
};
|
|
3249
|
+
mappedParams: any;
|
|
3246
3250
|
};
|
|
3247
3251
|
export { requestMapper_131 as requestMapper };
|
|
3248
3252
|
export function responseMapper_131(response: any): any;
|
|
3249
3253
|
export { responseMapper_131 as responseMapper };
|
|
3250
3254
|
}
|
|
3251
|
-
export {
|
|
3255
|
+
export { _default_76 as default };
|
|
3252
3256
|
}
|
|
3253
|
-
namespace
|
|
3254
|
-
|
|
3257
|
+
namespace GET_COMMERCIAL_STRUCTURE {
|
|
3258
|
+
namespace _default_77 {
|
|
3255
3259
|
let url_132: string;
|
|
3256
3260
|
export { url_132 as url };
|
|
3257
3261
|
import method_132 = methods.GET;
|
|
@@ -3263,6 +3267,51 @@ export namespace tenantsConfig {
|
|
|
3263
3267
|
export function responseMapper_132(response: any): any;
|
|
3264
3268
|
export { responseMapper_132 as responseMapper };
|
|
3265
3269
|
}
|
|
3270
|
+
export { _default_77 as default };
|
|
3271
|
+
}
|
|
3272
|
+
namespace GET_MODULES {
|
|
3273
|
+
namespace _default_78 {
|
|
3274
|
+
let url_133: string;
|
|
3275
|
+
export { url_133 as url };
|
|
3276
|
+
import method_133 = methods.GET;
|
|
3277
|
+
export { method_133 as method };
|
|
3278
|
+
export function requestMapper_133(request: any): {
|
|
3279
|
+
mappedParams: any;
|
|
3280
|
+
};
|
|
3281
|
+
export { requestMapper_133 as requestMapper };
|
|
3282
|
+
export function responseMapper_133(response: any): any;
|
|
3283
|
+
export { responseMapper_133 as responseMapper };
|
|
3284
|
+
}
|
|
3285
|
+
export { _default_78 as default };
|
|
3286
|
+
export namespace cnp_55 {
|
|
3287
|
+
let url_134: string;
|
|
3288
|
+
export { url_134 as url };
|
|
3289
|
+
import method_134 = methods.GET;
|
|
3290
|
+
export { method_134 as method };
|
|
3291
|
+
export function requestMapper_134(request: any): {
|
|
3292
|
+
mappedParams: {
|
|
3293
|
+
roles: any;
|
|
3294
|
+
};
|
|
3295
|
+
};
|
|
3296
|
+
export { requestMapper_134 as requestMapper };
|
|
3297
|
+
export function responseMapper_134(response: any): any;
|
|
3298
|
+
export { responseMapper_134 as responseMapper };
|
|
3299
|
+
}
|
|
3300
|
+
export { cnp_55 as cnp };
|
|
3301
|
+
}
|
|
3302
|
+
namespace GET_POWERBI_TOKEN {
|
|
3303
|
+
export namespace cnp_56 {
|
|
3304
|
+
let url_135: string;
|
|
3305
|
+
export { url_135 as url };
|
|
3306
|
+
import method_135 = methods.GET;
|
|
3307
|
+
export { method_135 as method };
|
|
3308
|
+
export function requestMapper_135(request: any): {
|
|
3309
|
+
mappedParams: any;
|
|
3310
|
+
};
|
|
3311
|
+
export { requestMapper_135 as requestMapper };
|
|
3312
|
+
export function responseMapper_135(response: any): any;
|
|
3313
|
+
export { responseMapper_135 as responseMapper };
|
|
3314
|
+
}
|
|
3266
3315
|
export { cnp_56 as cnp };
|
|
3267
3316
|
}
|
|
3268
3317
|
}
|
|
@@ -539,6 +539,32 @@ const partyModule = {
|
|
|
539
539
|
responseMapper: (response) => response,
|
|
540
540
|
}
|
|
541
541
|
},
|
|
542
|
+
CREATE_INDIVIDUAL: {
|
|
543
|
+
default: {
|
|
544
|
+
url: "party/v1/individuals",
|
|
545
|
+
method: exports.methods.POST,
|
|
546
|
+
source: '',
|
|
547
|
+
requestMapper: (request) => ({ mappedBody: request }),
|
|
548
|
+
responseMapper: (response) => response,
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
GET_ORGANIZATION_TYPES: {
|
|
552
|
+
default: {
|
|
553
|
+
url: "party/v1/organisation-types",
|
|
554
|
+
method: exports.methods.GET,
|
|
555
|
+
requestMapper: (request) => ({ mappedParams: request }),
|
|
556
|
+
responseMapper: (response) => response.data,
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
CREATE_ORGANIZATION: {
|
|
560
|
+
default: {
|
|
561
|
+
url: "party/v1/organisations",
|
|
562
|
+
method: exports.methods.POST,
|
|
563
|
+
source: '',
|
|
564
|
+
requestMapper: (request) => ({ mappedBody: request }),
|
|
565
|
+
responseMapper: (response) => response,
|
|
566
|
+
},
|
|
567
|
+
},
|
|
542
568
|
};
|
|
543
569
|
// ============================================================================
|
|
544
570
|
// PRODUCT MODULE
|