rez_core 2.2.261 → 2.2.263
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/module/integration/controller/integration.controller.d.ts +7 -0
- package/dist/module/integration/controller/integration.controller.js +30 -0
- package/dist/module/integration/controller/integration.controller.js.map +1 -1
- package/dist/module/integration/entity/integration-source.entity.js +1 -1
- package/dist/module/integration/entity/integration-source.entity.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +0 -5
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/integration/controller/integration.controller.ts +27 -0
- package/src/module/integration/entity/integration-source.entity.ts +1 -1
- package/src/module/meta/service/entity-dynamic.service.ts +0 -5
package/package.json
CHANGED
|
@@ -429,4 +429,31 @@ export class IntegrationController {
|
|
|
429
429
|
|
|
430
430
|
return allIntegrationData;
|
|
431
431
|
}
|
|
432
|
+
|
|
433
|
+
@Get('provider-urls')
|
|
434
|
+
getProviderUrls(
|
|
435
|
+
@Query('integration_type')
|
|
436
|
+
integration_type?: 'EMAIL' | 'SMS' | 'WA' | 'TELEPHONE',
|
|
437
|
+
@Query('integration_provider') integration_provider?: string,
|
|
438
|
+
) {
|
|
439
|
+
if (integration_type === 'TELEPHONE' && integration_provider) {
|
|
440
|
+
if (integration_provider.toLowerCase() == 'ozonetel') {
|
|
441
|
+
return {
|
|
442
|
+
success: true,
|
|
443
|
+
data: {
|
|
444
|
+
baseUrl: 'https://in1-ccaas-api.ozonetel.com',
|
|
445
|
+
agentLoginUrl: 'https://agent.cloudagent.ozonetel.com/login',
|
|
446
|
+
},
|
|
447
|
+
};
|
|
448
|
+
} else if (integration_provider.toLowerCase() == 'tubelight') {
|
|
449
|
+
return {
|
|
450
|
+
success: true,
|
|
451
|
+
data: {
|
|
452
|
+
baseUrl: 'https://portal.tubelightcommunications.com',
|
|
453
|
+
agentLoginUrl: 'https://dashboard.hellotubelight.com/sign-in',
|
|
454
|
+
},
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
432
459
|
}
|
|
@@ -12,6 +12,6 @@ export class IntegrationSource extends BaseEntity {
|
|
|
12
12
|
@Column({ name: 'integration_type', type: 'varchar', length: 20 })
|
|
13
13
|
integration_type: string;
|
|
14
14
|
|
|
15
|
-
@Column({ name: 'description', type: 'varchar', length:
|
|
15
|
+
@Column({ name: 'description', type: 'varchar', length: 500 })
|
|
16
16
|
description: string;
|
|
17
17
|
}
|
|
@@ -85,11 +85,6 @@ export class EntityDynamicService {
|
|
|
85
85
|
element_type: 'number',
|
|
86
86
|
},
|
|
87
87
|
{ attribute_key: 'level_type', db_datatype: 'int', element_type: 'text' },
|
|
88
|
-
{
|
|
89
|
-
attribute_key: 'level_id',
|
|
90
|
-
db_datatype: 'varchar',
|
|
91
|
-
element_type: 'text',
|
|
92
|
-
},
|
|
93
88
|
{ attribute_key: 'level_id', db_datatype: 'int', element_type: 'number' },
|
|
94
89
|
{ attribute_key: 'status', db_datatype: 'varchar', element_type: 'text' },
|
|
95
90
|
{
|