@sipgate/integration-bridge 0.27.14 → 0.27.17
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/controllers/task.controller.js +2 -1
- package/dist/controllers/task.controller.js.map +1 -1
- package/dist/models/adapter.model.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/index.js.map +1 -1
- package/dist/models/integration-defined-options.model.d.ts +8 -0
- package/dist/models/integration-defined-options.model.js +3 -0
- package/dist/models/integration-defined-options.model.js.map +1 -0
- package/dist/models/task.model.d.ts +0 -10
- package/package.json +1 -1
|
@@ -62,6 +62,7 @@ class TaskController {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
getTaskMetadata(req, res, next) {
|
|
65
|
+
var _a;
|
|
65
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
67
|
const { providerConfig } = req;
|
|
67
68
|
if (!providerConfig) {
|
|
@@ -75,7 +76,7 @@ class TaskController {
|
|
|
75
76
|
try {
|
|
76
77
|
(0, util_1.infoLogger)('getTaskMetadata', 'START', providerConfig.apiKey);
|
|
77
78
|
const metadata = yield this.adapter.getTaskMetadata(providerConfig);
|
|
78
|
-
(0, util_1.infoLogger)('getTaskMetadata', `Found ${metadata.
|
|
79
|
+
(0, util_1.infoLogger)('getTaskMetadata', `Found ${(_a = metadata.options) === null || _a === void 0 ? void 0 : _a.length} options for Task Object`, providerConfig.apiKey);
|
|
79
80
|
(0, util_1.infoLogger)('getTaskMetadata', 'END', providerConfig.apiKey);
|
|
80
81
|
res.json(metadata);
|
|
81
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task.controller.js","sourceRoot":"","sources":["../../src/controllers/task.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,kCAAqC;AAErC,MAAa,cAAc;IACzB,YAA6B,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;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G,CAAC,CAAC;aACX;QACH,CAAC;KAAA;IAEK,eAAe,CACnB,GAAwB,EACxB,GAAa,EACb,IAAkB;;;YAElB,MAAM,EAAE,cAAc,EAAE,GAAG,GAAG,CAAC;YAE/B,IAAI,CAAC,cAAc,EAAE;gBACnB,IAAI,CAAC,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC,CAAC;gBAC7C,OAAO;aACR;YAED,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;gBACjC,IAAI,CAAC,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC,CAAC;gBAC1C,OAAO;aACR;YAED,IAAI;gBACF,IAAA,iBAAU,EAAC,iBAAiB,EAAE,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;gBAC9D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;gBAEpE,IAAA,iBAAU,EACR,iBAAiB,EACjB,SAAS,MAAA,QAAQ,CAAC,OAAO,0CAAE,MAAM,0BAA0B,EAC3D,cAAc,CAAC,MAAM,CACtB,CAAC;gBAEF,IAAA,iBAAU,EAAC,iBAAiB,EAAE,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;gBAC5D,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACpB;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,CAAC,GAAG,CAAC,CAAC;aACX;;KACF;CACF;AA9GD,wCA8GC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, Response } from 'express';
|
|
2
|
-
import { CalendarEvent, CalendarEventTemplate, CalendarFilterOptions, CallEvent, CallEventWithIntegrationEntities, Config, Contact, ContactDelta, ContactTemplate, ContactUpdate, FollowUpWithIntegrationEntities, LabeledIntegrationEntity, LoggedIntegrationEntity, Task
|
|
2
|
+
import { CalendarEvent, CalendarEventTemplate, CalendarFilterOptions, CallEvent, CallEventWithIntegrationEntities, Config, Contact, ContactDelta, ContactTemplate, ContactUpdate, FollowUpWithIntegrationEntities, IntegrationDefinedOptions, LabeledIntegrationEntity, LoggedIntegrationEntity, Task } from '.';
|
|
3
3
|
import { IntegrationEntityType } from './integration-entity.model';
|
|
4
4
|
import { IntegrationsEvent } from './integrations-event.model';
|
|
5
5
|
export interface Adapter {
|
|
@@ -42,5 +42,5 @@ export interface Adapter {
|
|
|
42
42
|
verifyWebhookRequest?: (req: Request) => Promise<boolean>;
|
|
43
43
|
getTasks?: (req: Request, config: Config) => Promise<Task[]>;
|
|
44
44
|
createFollowUp?: (config: Config, body: FollowUpWithIntegrationEntities) => Promise<string>;
|
|
45
|
-
getTaskMetadata?: (config: Config) => Promise<
|
|
45
|
+
getTaskMetadata?: (config: Config) => Promise<IntegrationDefinedOptions>;
|
|
46
46
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './contact.model';
|
|
|
12
12
|
export * from './controller.model';
|
|
13
13
|
export * from './custom-router.model';
|
|
14
14
|
export * from './custom-routes.model';
|
|
15
|
+
export * from './integration-defined-options.model';
|
|
15
16
|
export * from './integration-entity.model';
|
|
16
17
|
export * from './integration-error.model';
|
|
17
18
|
export * from './integrations-event.model';
|
package/dist/models/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./contact.model"), exports);
|
|
|
28
28
|
__exportStar(require("./controller.model"), exports);
|
|
29
29
|
__exportStar(require("./custom-router.model"), exports);
|
|
30
30
|
__exportStar(require("./custom-routes.model"), exports);
|
|
31
|
+
__exportStar(require("./integration-defined-options.model"), exports);
|
|
31
32
|
__exportStar(require("./integration-entity.model"), exports);
|
|
32
33
|
__exportStar(require("./integration-error.model"), exports);
|
|
33
34
|
__exportStar(require("./integrations-event.model"), exports);
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,kEAAgD;AAChD,wDAAsC;AACtC,qDAAmC;AACnC,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,2CAAyB;AACzB,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,oDAAkC;AAClC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,sDAAoC;AACpC,yDAAuC;AACvC,2DAAyC;AACzC,yDAAuC;AACvC,kEAAgD;AAChD,wDAAsC;AACtC,qDAAmC;AACnC,iDAA+B;AAC/B,wDAAsC;AACtC,kDAAgC;AAChC,qDAAmC;AACnC,wDAAsC;AACtC,wDAAsC;AACtC,sEAAoD;AACpD,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,2CAAyB;AACzB,uDAAqC;AACrC,0DAAwC;AACxC,sDAAoC;AACpC,gDAA8B;AAC9B,+CAA6B;AAC7B,oDAAkC;AAClC,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration-defined-options.model.js","sourceRoot":"","sources":["../../src/models/integration-defined-options.model.ts"],"names":[],"mappings":""}
|