@ductape/sdk 0.0.3-beta9 → 0.0.4-v10
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/services/appApi.service.d.ts +3 -1
- package/dist/api/services/appApi.service.js +41 -2
- package/dist/api/services/appApi.service.js.map +1 -1
- package/dist/api/services/processorApi.service.d.ts +15 -1
- package/dist/api/services/processorApi.service.js +28 -0
- package/dist/api/services/processorApi.service.js.map +1 -1
- package/dist/api/services/productsApi.service.d.ts +7 -2
- package/dist/api/services/productsApi.service.js +23 -1
- package/dist/api/services/productsApi.service.js.map +1 -1
- package/dist/api/services/userApi.service.d.ts +2 -1
- package/dist/api/services/userApi.service.js +1 -1
- package/dist/api/services/userApi.service.js.map +1 -1
- package/dist/api/services/webhooksApi.service.d.ts +4 -1
- package/dist/api/services/webhooksApi.service.js +6 -3
- package/dist/api/services/webhooksApi.service.js.map +1 -1
- package/dist/api/services/workspaceApi.service.d.ts +2 -1
- package/dist/api/services/workspaceApi.service.js +1 -1
- package/dist/api/services/workspaceApi.service.js.map +1 -1
- package/dist/api/urls.d.ts +5 -0
- package/dist/api/urls.js +6 -1
- package/dist/api/urls.js.map +1 -1
- package/dist/api/utils/cache.utils.d.ts +3 -0
- package/dist/api/utils/cache.utils.js +18 -0
- package/dist/api/utils/cache.utils.js.map +1 -0
- package/dist/apps/services/app.service.d.ts +3 -3
- package/dist/apps/services/app.service.js +153 -75
- package/dist/apps/services/app.service.js.map +1 -1
- package/dist/apps/utils/objects.utils.d.ts +1 -1
- package/dist/apps/utils/objects.utils.js +5 -3
- package/dist/apps/utils/objects.utils.js.map +1 -1
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.js +1 -1
- package/dist/apps/validators/joi-validators/create.appWebhook.validator.js.map +1 -1
- package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.js +1 -0
- package/dist/apps/validators/joi-validators/create.appWebhookEvent.validator.js.map +1 -1
- package/dist/apps/validators/joi-validators/update.appAction.validator.d.ts +2 -2
- package/dist/apps/validators/joi-validators/update.appAction.validator.js +11 -11
- package/dist/apps/validators/joi-validators/update.appAction.validator.js.map +1 -1
- package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.js +2 -0
- package/dist/apps/validators/joi-validators/update.appWebhookEvent.validator.js.map +1 -1
- package/dist/clients/apps.client.js +1 -1
- package/dist/clients/apps.client.js.map +1 -1
- package/dist/clients/webhooks.client.d.ts +2 -1
- package/dist/clients/webhooks.client.js +2 -2
- package/dist/clients/webhooks.client.js.map +1 -1
- package/dist/imports/imports.service.d.ts +2 -3
- package/dist/imports/imports.service.js +4 -45
- package/dist/imports/imports.service.js.map +1 -1
- package/dist/imports/imports.types.d.ts +238 -0
- package/dist/imports/repos/openApi.repo.d.ts +4 -11
- package/dist/imports/repos/openApi.repo.js +50 -28
- package/dist/imports/repos/openApi.repo.js.map +1 -1
- package/dist/imports/repos/postmanV21.repo.js +1 -1
- package/dist/imports/repos/postmanV21.repo.js.map +1 -1
- package/dist/index.d.ts +33 -6
- package/dist/index.js +121 -11
- package/dist/index.js.map +1 -1
- package/dist/inputs/inputs.service.js +2 -2
- package/dist/inputs/inputs.service.js.map +1 -1
- package/dist/inputs/validators/inputs.validator.parse.js +1 -0
- package/dist/inputs/validators/inputs.validator.parse.js.map +1 -1
- package/dist/logs/logs.service.d.ts +1 -1
- package/dist/logs/logs.service.js +1 -0
- package/dist/logs/logs.service.js.map +1 -1
- package/dist/logs/logs.types.d.ts +4 -0
- package/dist/logs/logs.types.js.map +1 -1
- package/dist/processor/repos/sms.repo.d.ts +4 -4
- package/dist/processor/repos/sms.repo.js +23 -10
- package/dist/processor/repos/sms.repo.js.map +1 -1
- package/dist/processor/services/fallback.service.d.ts +0 -1
- package/dist/processor/services/fallback.service.js +0 -16
- package/dist/processor/services/fallback.service.js.map +1 -1
- package/dist/processor/services/processor.service.d.ts +61 -18
- package/dist/processor/services/processor.service.js +714 -316
- package/dist/processor/services/processor.service.js.map +1 -1
- package/dist/processor/services/quota.service.d.ts +6 -13
- package/dist/processor/services/quota.service.js +12 -3
- package/dist/processor/services/quota.service.js.map +1 -1
- package/dist/processor/utils/processor.utils.d.ts +6 -230
- package/dist/processor/utils/processor.utils.js +212 -122
- package/dist/processor/utils/processor.utils.js.map +1 -1
- package/dist/processor/utils/storage.util.js +54 -40
- package/dist/processor/utils/storage.util.js.map +1 -1
- package/dist/products/services/products.service.d.ts +26 -7
- package/dist/products/services/products.service.js +427 -147
- package/dist/products/services/products.service.js.map +1 -1
- package/dist/products/utils/functions.utils.d.ts +1 -0
- package/dist/products/utils/functions.utils.js +11 -0
- package/dist/products/utils/functions.utils.js.map +1 -1
- package/dist/products/validators/index.d.ts +3 -1
- package/dist/products/validators/index.js +5 -1
- package/dist/products/validators/index.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productFallback.validator.js +7 -1
- package/dist/products/validators/joi-validators/create.productFallback.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productFeature.validator.js +2 -0
- package/dist/products/validators/joi-validators/create.productFeature.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.productQuota.validator.js +10 -2
- package/dist/products/validators/joi-validators/create.productQuota.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/create.userAuth.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/create.userAuth.validator.js +48 -0
- package/dist/products/validators/joi-validators/create.userAuth.validator.js.map +1 -0
- package/dist/products/validators/joi-validators/update.dataValue.validator.d.ts +1 -1
- package/dist/products/validators/joi-validators/update.dataValue.validator.js +3 -2
- package/dist/products/validators/joi-validators/update.dataValue.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productFallback.validator.js +7 -2
- package/dist/products/validators/joi-validators/update.productFallback.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productFeature.validator.js +2 -0
- package/dist/products/validators/joi-validators/update.productFeature.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.productQuota.validator.js +12 -7
- package/dist/products/validators/joi-validators/update.productQuota.validator.js.map +1 -1
- package/dist/products/validators/joi-validators/update.userAuth.validator.d.ts +3 -0
- package/dist/products/validators/joi-validators/update.userAuth.validator.js +48 -0
- package/dist/products/validators/joi-validators/update.userAuth.validator.js.map +1 -0
- package/dist/test/test.import.openapi.d.ts +1 -0
- package/dist/test/test.import.openapi.js +76 -0
- package/dist/test/test.import.openapi.js.map +1 -0
- package/dist/test/test.logs.js +1 -2
- package/dist/test/test.logs.js.map +1 -1
- package/dist/types/appBuilder.types.d.ts +20 -12
- package/dist/types/enums.d.ts +6 -0
- package/dist/types/enums.js +8 -1
- package/dist/types/enums.js.map +1 -1
- package/dist/types/index.types.d.ts +5 -0
- package/dist/types/index.types.js.map +1 -1
- package/dist/types/processor.types.d.ts +89 -4
- package/dist/types/processor.types.js.map +1 -1
- package/dist/types/productsBuilder.types.d.ts +40 -8
- package/dist/types/productsBuilder.types.js +3 -0
- package/dist/types/productsBuilder.types.js.map +1 -1
- package/package.json +11 -2
|
@@ -32,8 +32,10 @@ export interface IAppWebhookEvent {
|
|
|
32
32
|
_id?: string;
|
|
33
33
|
tag: string;
|
|
34
34
|
name: string;
|
|
35
|
+
selector: string;
|
|
36
|
+
selectorValue?: string;
|
|
35
37
|
description: string;
|
|
36
|
-
sample:
|
|
38
|
+
sample: Record<string, unknown>;
|
|
37
39
|
sample_data?: IParsedSample[];
|
|
38
40
|
}
|
|
39
41
|
export interface IAppAccess {
|
|
@@ -78,6 +80,22 @@ export interface ICustomEnv {
|
|
|
78
80
|
config?: Record<string, unknown>;
|
|
79
81
|
active: boolean;
|
|
80
82
|
}
|
|
83
|
+
export interface IActionUpdate {
|
|
84
|
+
resource?: string;
|
|
85
|
+
method?: HttpMethods;
|
|
86
|
+
description?: string;
|
|
87
|
+
request_type?: DataFormats;
|
|
88
|
+
response?: {
|
|
89
|
+
success: boolean;
|
|
90
|
+
body: Record<string, unknown> | string;
|
|
91
|
+
response_format: DataFormats;
|
|
92
|
+
status_code: StatusCodes;
|
|
93
|
+
};
|
|
94
|
+
body?: Record<string, unknown>;
|
|
95
|
+
query?: Record<string, unknown>;
|
|
96
|
+
params?: Record<string, unknown>;
|
|
97
|
+
headers?: Record<string, unknown>;
|
|
98
|
+
}
|
|
81
99
|
export interface IAppAction {
|
|
82
100
|
_id?: string;
|
|
83
101
|
app_id?: string;
|
|
@@ -158,17 +176,7 @@ export interface IAppVersion {
|
|
|
158
176
|
}
|
|
159
177
|
export interface IAppRetryPolicy {
|
|
160
178
|
max: number;
|
|
161
|
-
policy:
|
|
162
|
-
500: IRetrySettings;
|
|
163
|
-
502: IRetrySettings;
|
|
164
|
-
503: IRetrySettings;
|
|
165
|
-
504: IRetrySettings;
|
|
166
|
-
400: IRetrySettings;
|
|
167
|
-
401: IRetrySettings;
|
|
168
|
-
403: IRetrySettings;
|
|
169
|
-
404: IRetrySettings;
|
|
170
|
-
default?: IRetrySettings;
|
|
171
|
-
};
|
|
179
|
+
policy: Record<string, IRetrySettings>;
|
|
172
180
|
}
|
|
173
181
|
export interface IRetrySettings {
|
|
174
182
|
available?: boolean;
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -30,12 +30,17 @@ export declare enum RequestAction {
|
|
|
30
30
|
CREATE = "create",
|
|
31
31
|
DELETE = "delete"
|
|
32
32
|
}
|
|
33
|
+
export declare enum QuotaFallbackTypes {
|
|
34
|
+
ACTION = "action",
|
|
35
|
+
FEATURE = "feature"
|
|
36
|
+
}
|
|
33
37
|
export declare enum ProductComponents {
|
|
34
38
|
ENV = "env",
|
|
35
39
|
APP = "app",
|
|
36
40
|
ACTION = "action",
|
|
37
41
|
DATABASE = "database",
|
|
38
42
|
FUNCTION = "function",
|
|
43
|
+
SESSION = "session",
|
|
39
44
|
CACHE = "cache",
|
|
40
45
|
NOTIFICATION = "notification",
|
|
41
46
|
STORAGE = "storage",
|
|
@@ -46,6 +51,7 @@ export declare enum ProductComponents {
|
|
|
46
51
|
DATABASE_ACTION = "database_action",
|
|
47
52
|
NOTIFICATION_MESSAGE = "notification_message",
|
|
48
53
|
QUOTA = "quota",
|
|
54
|
+
CONDITIONAL = "conditional",
|
|
49
55
|
FALLBACK = "fallback",
|
|
50
56
|
DATABASE_MIGRATION = "database_migration"
|
|
51
57
|
}
|
package/dist/types/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Notifiers = exports.Languages = exports.TokenPeriods = exports.DataFormats = exports.StatusCodes = exports.SuccessMarkerType = exports.InputsTypes = exports.DecoratorPostions = exports.DefaultTypes = exports.Categories = exports.AppCategories = exports.FileType = exports.DataTypes = exports.AuthTypes = exports.EventTypes = exports.ProductComponents = exports.RequestAction = exports.AppComponents = exports.HttpMethods = exports.PublicStates = void 0;
|
|
3
|
+
exports.Notifiers = exports.Languages = exports.TokenPeriods = exports.DataFormats = exports.StatusCodes = exports.SuccessMarkerType = exports.InputsTypes = exports.DecoratorPostions = exports.DefaultTypes = exports.Categories = exports.AppCategories = exports.FileType = exports.DataTypes = exports.AuthTypes = exports.EventTypes = exports.ProductComponents = exports.QuotaFallbackTypes = exports.RequestAction = exports.AppComponents = exports.HttpMethods = exports.PublicStates = void 0;
|
|
4
4
|
var PublicStates;
|
|
5
5
|
(function (PublicStates) {
|
|
6
6
|
PublicStates["ALL"] = "all";
|
|
@@ -37,6 +37,11 @@ var RequestAction;
|
|
|
37
37
|
RequestAction["CREATE"] = "create";
|
|
38
38
|
RequestAction["DELETE"] = "delete";
|
|
39
39
|
})(RequestAction || (exports.RequestAction = RequestAction = {}));
|
|
40
|
+
var QuotaFallbackTypes;
|
|
41
|
+
(function (QuotaFallbackTypes) {
|
|
42
|
+
QuotaFallbackTypes["ACTION"] = "action";
|
|
43
|
+
QuotaFallbackTypes["FEATURE"] = "feature";
|
|
44
|
+
})(QuotaFallbackTypes || (exports.QuotaFallbackTypes = QuotaFallbackTypes = {}));
|
|
40
45
|
var ProductComponents;
|
|
41
46
|
(function (ProductComponents) {
|
|
42
47
|
ProductComponents["ENV"] = "env";
|
|
@@ -44,6 +49,7 @@ var ProductComponents;
|
|
|
44
49
|
ProductComponents["ACTION"] = "action";
|
|
45
50
|
ProductComponents["DATABASE"] = "database";
|
|
46
51
|
ProductComponents["FUNCTION"] = "function";
|
|
52
|
+
ProductComponents["SESSION"] = "session";
|
|
47
53
|
ProductComponents["CACHE"] = "cache";
|
|
48
54
|
ProductComponents["NOTIFICATION"] = "notification";
|
|
49
55
|
ProductComponents["STORAGE"] = "storage";
|
|
@@ -54,6 +60,7 @@ var ProductComponents;
|
|
|
54
60
|
ProductComponents["DATABASE_ACTION"] = "database_action";
|
|
55
61
|
ProductComponents["NOTIFICATION_MESSAGE"] = "notification_message";
|
|
56
62
|
ProductComponents["QUOTA"] = "quota";
|
|
63
|
+
ProductComponents["CONDITIONAL"] = "conditional";
|
|
57
64
|
ProductComponents["FALLBACK"] = "fallback";
|
|
58
65
|
ProductComponents["DATABASE_MIGRATION"] = "database_migration";
|
|
59
66
|
})(ProductComponents || (exports.ProductComponents = ProductComponents = {}));
|
package/dist/types/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,gCAAiB,CAAA;AACnB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,aAeX;AAfD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,uCAAsB,CAAA;IACtB,uCAAsB,CAAA;IACtB,0CAAyB,CAAA;IAEzB,4CAA2B,CAAA;IAE3B,oDAAmC,CAAA;IACnC,oCAAmB,CAAA;IACnB,gDAA+B,CAAA;AACjC,CAAC,EAfW,aAAa,6BAAb,aAAa,QAexB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/types/enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,2BAAW,CAAA;IACX,+BAAe,CAAA;IACf,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,8BAAe,CAAA;IACf,gCAAiB,CAAA;AACnB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,aAeX;AAfD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,uCAAsB,CAAA;IACtB,uCAAsB,CAAA;IACtB,0CAAyB,CAAA;IAEzB,4CAA2B,CAAA;IAE3B,oDAAmC,CAAA;IACnC,oCAAmB,CAAA;IACnB,gDAA+B,CAAA;AACjC,CAAC,EAfW,aAAa,6BAAb,aAAa,QAexB;AAED,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,6BAAb,aAAa,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EvB,4CAA6B,CAAA;IAC7B,sCAAuB,CAAA;IACvB,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;IACvB,iDAAkC,CAAA;IAClC,8CAA+B,CAAA;IAC/B,2CAA4B,CAAA;IAC5B,oCAAqB,CAAA;IACrB,mCAAoB,CAAA;IACpB,4CAA6B,CAAA;AAC/B,CAAC,EApEW,WAAW,2BAAX,WAAW,QAoEtB;AAED,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,wCAAyB,CAAA;IACzB,+DAAgD,CAAA;IAChD,+CAAgC,CAAA;IAChC,4BAAa,CAAA;IACb,4BAAa,CAAA;AACf,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,gCAAgB,CAAA;IAChB,gCAAgB,CAAA;IAChB,6BAAa,CAAA;IACb,+BAAe,CAAA;IACf,iCAAiB,CAAA;IACjB,+BAAe,CAAA;AACjB,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAED,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,8BAAiB,CAAA;AACnB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED;;GAEG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Queue } from 'bullmq';
|
|
1
2
|
import { RedisClientType } from 'redis';
|
|
2
3
|
export interface IDuctapeInit {
|
|
3
4
|
user_id: string;
|
|
@@ -18,6 +19,10 @@ export interface IBuilderInit {
|
|
|
18
19
|
token: string;
|
|
19
20
|
env_type: EnvType;
|
|
20
21
|
redis_client?: RedisClientType;
|
|
22
|
+
queues?: {
|
|
23
|
+
health: Queue;
|
|
24
|
+
jobs: Queue;
|
|
25
|
+
};
|
|
21
26
|
}
|
|
22
27
|
export interface ILoggerInit extends IBuilderInit {
|
|
23
28
|
product_id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/types/index.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.types.js","sourceRoot":"","sources":["../../src/types/index.types.ts"],"names":[],"mappings":";;;AAWA,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;IACzB,0BAAe,CAAA;AACjB,CAAC,EAJW,OAAO,uBAAP,OAAO,QAIlB"}
|
|
@@ -3,12 +3,48 @@ import { AWSSQSConfig, GooglePubSubConfig, IActionRequest, IDbActionRequest, IDe
|
|
|
3
3
|
import { HttpMethods, Notifiers } from './enums';
|
|
4
4
|
import ObjectId from 'bson-objectid';
|
|
5
5
|
import { IParsedSample } from './inputs.types';
|
|
6
|
-
export interface
|
|
6
|
+
export interface IProcessorInputGeneric {
|
|
7
7
|
product: string;
|
|
8
8
|
env: string;
|
|
9
|
-
input: Record<string, unknown>;
|
|
10
9
|
tag: string;
|
|
11
10
|
}
|
|
11
|
+
export interface IProcessorInputSessionGeneric extends IProcessorInputGeneric {
|
|
12
|
+
session?: {
|
|
13
|
+
tag: string;
|
|
14
|
+
token: string;
|
|
15
|
+
};
|
|
16
|
+
cache?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IProcessorInput extends IProcessorInputSessionGeneric {
|
|
19
|
+
input: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
export interface IRefreshTokenReq {
|
|
22
|
+
product_tag: string;
|
|
23
|
+
env: string;
|
|
24
|
+
refreshToken: string;
|
|
25
|
+
identifier: string;
|
|
26
|
+
start_at: number;
|
|
27
|
+
end_at: number;
|
|
28
|
+
session_tag: string;
|
|
29
|
+
data: string;
|
|
30
|
+
session_id: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ISessionInput extends IProcessorInputGeneric {
|
|
33
|
+
data: Record<string, unknown>;
|
|
34
|
+
}
|
|
35
|
+
export interface ISessionPayload extends IProcessorInputGeneric {
|
|
36
|
+
token: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ISessionRefreshPayload extends IProcessorInputGeneric {
|
|
39
|
+
refreshToken: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ISession extends IProcessorInputGeneric {
|
|
42
|
+
token: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ISessionOutput {
|
|
45
|
+
token: string;
|
|
46
|
+
refreshToken: string;
|
|
47
|
+
}
|
|
12
48
|
export interface IProcessorSequenceLevels {
|
|
13
49
|
[level: string]: Array<IFeatureSequence>;
|
|
14
50
|
}
|
|
@@ -38,6 +74,7 @@ export interface IProcessorResult {
|
|
|
38
74
|
start: number;
|
|
39
75
|
component: LogEventTypes;
|
|
40
76
|
end: number;
|
|
77
|
+
retryable: boolean;
|
|
41
78
|
result: IProcessingOutput;
|
|
42
79
|
env: string;
|
|
43
80
|
feature_id: string;
|
|
@@ -114,6 +151,7 @@ export interface ISmsHandler {
|
|
|
114
151
|
provider: SmsProvider;
|
|
115
152
|
accountSid?: string;
|
|
116
153
|
authToken?: string;
|
|
154
|
+
apiSecret?: string;
|
|
117
155
|
apiKey?: string;
|
|
118
156
|
sender: string;
|
|
119
157
|
}
|
|
@@ -186,15 +224,31 @@ export interface IActionProcessorInput {
|
|
|
186
224
|
input: IActionRequest;
|
|
187
225
|
event: string;
|
|
188
226
|
retries?: number;
|
|
227
|
+
session?: {
|
|
228
|
+
tag: string;
|
|
229
|
+
token: string;
|
|
230
|
+
};
|
|
189
231
|
}
|
|
190
232
|
export interface IJobProcessorInput {
|
|
191
233
|
env: string;
|
|
192
234
|
product: string;
|
|
193
|
-
|
|
235
|
+
event: string;
|
|
194
236
|
cache?: string;
|
|
237
|
+
retries: number;
|
|
195
238
|
input: IActionRequest | INotificationRequest | IDbActionRequest | IFunctionRequest | IStorageRequest | Record<string, unknown> | IPublishRequest;
|
|
196
|
-
event: string;
|
|
197
239
|
start_at: number;
|
|
240
|
+
session?: {
|
|
241
|
+
tag: string;
|
|
242
|
+
token: string;
|
|
243
|
+
};
|
|
244
|
+
repeat?: IJobRepeatOptions;
|
|
245
|
+
}
|
|
246
|
+
interface IJobRepeatOptions {
|
|
247
|
+
cron?: string;
|
|
248
|
+
every?: number;
|
|
249
|
+
limit?: number;
|
|
250
|
+
endDate?: number | string;
|
|
251
|
+
tz?: string;
|
|
198
252
|
}
|
|
199
253
|
export interface IFileReadResult extends IStorageRequest {
|
|
200
254
|
}
|
|
@@ -206,6 +260,10 @@ export interface IStorageProcessorInput {
|
|
|
206
260
|
input: IStorageRequest;
|
|
207
261
|
event: string;
|
|
208
262
|
retries?: number;
|
|
263
|
+
session?: {
|
|
264
|
+
tag: string;
|
|
265
|
+
token: string;
|
|
266
|
+
};
|
|
209
267
|
}
|
|
210
268
|
export interface IFunctionProcessorInput {
|
|
211
269
|
env: string;
|
|
@@ -228,6 +286,10 @@ export interface IMessageBrokerPublishInput {
|
|
|
228
286
|
cache?: string;
|
|
229
287
|
product: string;
|
|
230
288
|
input: IPublishRequest;
|
|
289
|
+
session?: {
|
|
290
|
+
tag: string;
|
|
291
|
+
token: string;
|
|
292
|
+
};
|
|
231
293
|
}
|
|
232
294
|
export interface IMessageBrokerSubscribeInput {
|
|
233
295
|
env: string;
|
|
@@ -242,6 +304,10 @@ export interface IDBActionProcessorInput {
|
|
|
242
304
|
input: IDbActionRequest;
|
|
243
305
|
event: string;
|
|
244
306
|
retries?: number;
|
|
307
|
+
session?: {
|
|
308
|
+
tag: string;
|
|
309
|
+
token: string;
|
|
310
|
+
};
|
|
245
311
|
}
|
|
246
312
|
export interface INotificationProcessorInput {
|
|
247
313
|
env: string;
|
|
@@ -250,6 +316,10 @@ export interface INotificationProcessorInput {
|
|
|
250
316
|
event: string;
|
|
251
317
|
input: INotificationRequest;
|
|
252
318
|
retries?: number;
|
|
319
|
+
session?: {
|
|
320
|
+
tag: string;
|
|
321
|
+
token: string;
|
|
322
|
+
};
|
|
253
323
|
}
|
|
254
324
|
export interface IWebhooks {
|
|
255
325
|
uuid: string;
|
|
@@ -260,6 +330,7 @@ export interface IWebhooks {
|
|
|
260
330
|
created_at?: Date;
|
|
261
331
|
updated_at?: Date;
|
|
262
332
|
access_tag: string;
|
|
333
|
+
version?: string;
|
|
263
334
|
webhook_tag: string;
|
|
264
335
|
private_key?: string;
|
|
265
336
|
active?: boolean;
|
|
@@ -268,3 +339,17 @@ export interface IWebhooks {
|
|
|
268
339
|
app_tag: string;
|
|
269
340
|
product_tag: string;
|
|
270
341
|
}
|
|
342
|
+
export interface IFileURLPayload {
|
|
343
|
+
url: string;
|
|
344
|
+
workspace_id: string;
|
|
345
|
+
type: string;
|
|
346
|
+
product: string;
|
|
347
|
+
provider: string;
|
|
348
|
+
process_id: string;
|
|
349
|
+
event: string;
|
|
350
|
+
env: string;
|
|
351
|
+
size: number;
|
|
352
|
+
__v?: number;
|
|
353
|
+
_id?: string;
|
|
354
|
+
}
|
|
355
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processor.types.js","sourceRoot":"","sources":["../../src/types/processor.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"processor.types.js","sourceRoot":"","sources":["../../src/types/processor.types.ts"],"names":[],"mappings":";;;AAmLA,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,8BAAe,CAAA;IACf,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,2BAAX,WAAW,QAKtB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyValuePair } from '../imports/imports.types';
|
|
2
2
|
import { IAppEnv, ISample } from './appBuilder.types';
|
|
3
|
-
import { Categories, DataTypes, FileType, HttpMethods, ProductComponents } from './enums';
|
|
3
|
+
import { Categories, DataTypes, FileType, HttpMethods, ProductComponents, TokenPeriods } from './enums';
|
|
4
4
|
import { IParsedIndexes, IParsedInput, IParsedSample } from './inputs.types';
|
|
5
5
|
import { IProductMessageBroker, IProductNotification, IPublishRequest } from './processor.types';
|
|
6
6
|
export interface ICreateProductsBuilder {
|
|
@@ -32,11 +32,13 @@ export interface IProduct {
|
|
|
32
32
|
_id?: string;
|
|
33
33
|
workspace_id: string;
|
|
34
34
|
name: string;
|
|
35
|
+
tag: string;
|
|
35
36
|
description: string;
|
|
36
37
|
apps: Array<IProductApp>;
|
|
37
38
|
envs: Array<IProductEnv>;
|
|
38
39
|
functions: Array<IProductFunction>;
|
|
39
40
|
caches: Array<IProductCache>;
|
|
41
|
+
sessions: Array<IProductSession>;
|
|
40
42
|
notifications: Array<IProductNotification>;
|
|
41
43
|
features: Array<IProductFeature>;
|
|
42
44
|
databases: Array<IProductDatabase>;
|
|
@@ -68,6 +70,18 @@ export interface IProductAppAuth {
|
|
|
68
70
|
values?: string;
|
|
69
71
|
expiry?: number;
|
|
70
72
|
}
|
|
73
|
+
export interface IProductSession {
|
|
74
|
+
_id?: string;
|
|
75
|
+
expiry: number;
|
|
76
|
+
period: TokenPeriods;
|
|
77
|
+
selector: string;
|
|
78
|
+
selectorValue: Array<IParsedSample>;
|
|
79
|
+
schema: Record<string, unknown>;
|
|
80
|
+
schema_data?: Array<IParsedSample>;
|
|
81
|
+
tag: string;
|
|
82
|
+
name: string;
|
|
83
|
+
description: string;
|
|
84
|
+
}
|
|
71
85
|
export interface IProductApp {
|
|
72
86
|
_id?: string;
|
|
73
87
|
access_tag: string;
|
|
@@ -213,7 +227,10 @@ export declare enum JobEventTypes {
|
|
|
213
227
|
DATABASE_ACTION = "database_action",
|
|
214
228
|
FUNCTION = "function",
|
|
215
229
|
STORAGE = "storage",
|
|
216
|
-
PUBLISH = "publish"
|
|
230
|
+
PUBLISH = "publish",
|
|
231
|
+
FALLBACK = "fallback",
|
|
232
|
+
QUOTA = "quota",
|
|
233
|
+
FEATURE = "feature"
|
|
217
234
|
}
|
|
218
235
|
export interface IProductJobs {
|
|
219
236
|
_id?: string;
|
|
@@ -311,6 +328,7 @@ export interface IFeatureEvent {
|
|
|
311
328
|
env?: IProductEnv;
|
|
312
329
|
return?: boolean;
|
|
313
330
|
cache?: string;
|
|
331
|
+
start_at?: number;
|
|
314
332
|
}
|
|
315
333
|
export declare enum Conditions {
|
|
316
334
|
LOOP = "loop",
|
|
@@ -353,10 +371,10 @@ export interface IParseInputStringMetaData {
|
|
|
353
371
|
export interface IRequest {
|
|
354
372
|
}
|
|
355
373
|
export interface IActionRequest {
|
|
356
|
-
query
|
|
357
|
-
params
|
|
358
|
-
body
|
|
359
|
-
headers
|
|
374
|
+
query?: Record<string, unknown>;
|
|
375
|
+
params?: Record<string, unknown>;
|
|
376
|
+
body?: Record<string, unknown>;
|
|
377
|
+
headers?: Record<string, unknown>;
|
|
360
378
|
input?: Record<string, unknown>;
|
|
361
379
|
}
|
|
362
380
|
export interface IActionSamples {
|
|
@@ -380,10 +398,10 @@ export interface IQuotaOptions extends IFallbackOptions {
|
|
|
380
398
|
uses?: number;
|
|
381
399
|
}
|
|
382
400
|
export interface IFallbackOptions {
|
|
383
|
-
app
|
|
401
|
+
app?: string;
|
|
384
402
|
type: FeatureEventTypes.FEATURE | FeatureEventTypes.ACTION;
|
|
385
403
|
event: string;
|
|
386
|
-
input: IActionRequest
|
|
404
|
+
input: IActionRequest | Record<string, unknown>;
|
|
387
405
|
output: Record<string, unknown>;
|
|
388
406
|
retries: number;
|
|
389
407
|
healthcheck?: string;
|
|
@@ -439,6 +457,8 @@ export interface IFeatureSequence {
|
|
|
439
457
|
}
|
|
440
458
|
export interface IProductFeature {
|
|
441
459
|
_id: string;
|
|
460
|
+
name: string;
|
|
461
|
+
description: string;
|
|
442
462
|
input_type: string;
|
|
443
463
|
store_event_results: boolean;
|
|
444
464
|
tag: string;
|
|
@@ -556,5 +576,17 @@ export interface IRemoteCache {
|
|
|
556
576
|
component_tag: string;
|
|
557
577
|
component_type: string;
|
|
558
578
|
}
|
|
579
|
+
export interface IPaginationOptions {
|
|
580
|
+
page: number;
|
|
581
|
+
limit: number;
|
|
582
|
+
}
|
|
583
|
+
export interface IFetchFilesPayload extends IPaginationOptions {
|
|
584
|
+
product: string;
|
|
585
|
+
event: string;
|
|
586
|
+
}
|
|
587
|
+
export interface IFetchUsersPayload extends IPaginationOptions {
|
|
588
|
+
session: string;
|
|
589
|
+
product: string;
|
|
590
|
+
}
|
|
559
591
|
export interface FetchRemoteCachePayload extends Partial<Pick<IRemoteCache, 'cache_tag' | 'component_tag' | 'component_type' | 'expiry' | 'product_tag'>> {
|
|
560
592
|
}
|
|
@@ -42,6 +42,9 @@ var JobEventTypes;
|
|
|
42
42
|
JobEventTypes["FUNCTION"] = "function";
|
|
43
43
|
JobEventTypes["STORAGE"] = "storage";
|
|
44
44
|
JobEventTypes["PUBLISH"] = "publish";
|
|
45
|
+
JobEventTypes["FALLBACK"] = "fallback";
|
|
46
|
+
JobEventTypes["QUOTA"] = "quota";
|
|
47
|
+
JobEventTypes["FEATURE"] = "feature";
|
|
45
48
|
})(JobEventTypes || (exports.JobEventTypes = JobEventTypes = {}));
|
|
46
49
|
exports.ValidOperators = ['>', '<', '>=', '<=', '==', '!=='];
|
|
47
50
|
var Conditions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productsBuilder.types.js","sourceRoot":"","sources":["../../src/types/productsBuilder.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"productsBuilder.types.js","sourceRoot":"","sources":["../../src/types/productsBuilder.types.ts"],"names":[],"mappings":";;;AA6IA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,+BAAW,CAAA;IACX,+BAAW,CAAA;AACb,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAeD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAJW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A6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,gCAAW,CAAA;IACX,wCAAmB,CAAA;IACnB,sBAAsB;IACtB,wCAAmB,CAAA;IACnB,4CAAuB,CAAA;IACvB,oCAAe,CAAA;IACf,0CAAqB,CAAA;AACvB,CAAC,EAZW,iBAAiB,iCAAjB,iBAAiB,QAY5B;AAED,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,0DAAqC,CAAA;AACvC,CAAC,EAFW,iBAAiB,iCAAjB,iBAAiB,QAE5B;AAED,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,qCAAe,CAAA;IACf,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,qDAA+B,CAAA;AACjC,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,mCAAe,CAAA;IACf,iCAAa,CAAA;AACf,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ductape/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4v10",
|
|
4
4
|
"description": "sdk for building ductaped products",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,16 +33,23 @@
|
|
|
33
33
|
"aws-sdk": "^2.1692.0",
|
|
34
34
|
"axios": "^1.5.0",
|
|
35
35
|
"bson-objectid": "^2.0.4",
|
|
36
|
+
"bullmq": "^5.53.2",
|
|
36
37
|
"crypto-js": "^4.2.0",
|
|
37
38
|
"date-fns": "^4.1.0",
|
|
38
39
|
"dt-sql-parser": "^4.0.2",
|
|
39
40
|
"firebase-admin": "^13.0.1",
|
|
40
41
|
"form-data": "^4.0.1",
|
|
42
|
+
"google-auth-library": "^9.15.1",
|
|
43
|
+
"gtoken": "^7.1.0",
|
|
41
44
|
"handlebars": "^4.7.8",
|
|
42
45
|
"joi": "^17.7.0",
|
|
46
|
+
"jsonwebtoken": "^9.0.2",
|
|
47
|
+
"jwa": "^2.0.1",
|
|
48
|
+
"jws": "^4.0.0",
|
|
43
49
|
"kafkajs": "^2.2.4",
|
|
44
50
|
"mongodb": "^6.14.2",
|
|
45
51
|
"nodemailer": "^6.10.0",
|
|
52
|
+
"openapi-to-postmanv2": "^5.0.0",
|
|
46
53
|
"pg": "^8.13.3",
|
|
47
54
|
"redis": "^4.7.0",
|
|
48
55
|
"sql-parser": "^0.5.0",
|
|
@@ -54,11 +61,13 @@
|
|
|
54
61
|
"@types/aws-sdk": "^0.0.42",
|
|
55
62
|
"@types/crypto-js": "^4.2.2",
|
|
56
63
|
"@types/mime-types": "^2.1.4",
|
|
64
|
+
"@types/node": "^22.15.19",
|
|
57
65
|
"@types/nodemailer": "^6.4.17",
|
|
66
|
+
"@types/openapi-to-postmanv2": "^3.2.4",
|
|
58
67
|
"@types/pg": "^8.11.11",
|
|
59
68
|
"@types/uuid": "^10.0.0",
|
|
60
69
|
"@types/xml2js": "^0.4.11",
|
|
61
70
|
"@types/xml2json": "^0.11.4",
|
|
62
|
-
"typescript": "^5.
|
|
71
|
+
"typescript": "^5.8.3"
|
|
63
72
|
}
|
|
64
73
|
}
|