@useparagon/core 1.1.1-canary.3 → 1.1.1
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.
|
@@ -2,4 +2,4 @@ import { SerializedInput } from '../inputs';
|
|
|
2
2
|
import { ICustomIntegrationConfig, UserDefinedConfigInput } from './custom.integration.interface';
|
|
3
3
|
export declare const isCustomIntegration: (integration: string) => boolean;
|
|
4
4
|
export declare const convertSerializedInputsToUserDefinedConfigInputs: (inputs: SerializedInput[]) => UserDefinedConfigInput[];
|
|
5
|
-
export declare function generateSlugForIntegration(customIntegration: ICustomIntegrationConfig): string;
|
|
5
|
+
export declare function generateSlugForIntegration(customIntegration: ICustomIntegrationConfig, existingSlug?: string): string;
|
|
@@ -15,7 +15,10 @@ const convertSerializedInputsToUserDefinedConfigInputs = (inputs) => {
|
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.convertSerializedInputsToUserDefinedConfigInputs = convertSerializedInputsToUserDefinedConfigInputs;
|
|
18
|
-
function generateSlugForIntegration(customIntegration) {
|
|
18
|
+
function generateSlugForIntegration(customIntegration, existingSlug) {
|
|
19
|
+
if (existingSlug) {
|
|
20
|
+
return existingSlug.startsWith('custom.') ? existingSlug : `custom.${existingSlug}`;
|
|
21
|
+
}
|
|
19
22
|
const slug = customIntegration.name
|
|
20
23
|
? customIntegration.name
|
|
21
24
|
.replace(/[\W_]+/g, '')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.utils.js","sourceRoot":"","sources":["../../src/integration/integration.utils.ts"],"names":[],"mappings":";;;AAAA,sCAA8D;AAWvD,MAAM,mBAAmB,GAAG,CAAC,WAAmB,EAAE,EAAE,CACzD,WAAW,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,WAAW,KAAK,WAAW,CAAC;AADtD,QAAA,mBAAmB,uBACmC;AAO5D,MAAM,gDAAgD,GAAG,CAC9D,MAAyB,EACC,EAAE;IAC5B,OAAO,MA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C;AACN,CAAC,CAAC;AAXW,QAAA,gDAAgD,oDAW3D;AAMF,SAAgB,0BAA0B,CACxC,iBAA2C,EAC3C,YAAqB;IAErB,IAAI,YAAY,EAAE,CAAC;QACjB,OAAO,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,YAAY,EAAE,CAAC;IACtF,CAAC;IAED,MAAM,IAAI,GAAuB,iBAAiB,CAAC,IAAI;QACrD,CAAC,CAAC,iBAAiB,CAAC,IAAI;aACnB,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC;aACtB,IAAI,EAAE;aACN,WAAW,EAAE;QAClB,CAAC,CAAC,SAAS,CAAC;IAEd,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CACb,8DAA8D,iBAAiB,CAAC,IAAI,EAAE,CACvF,CAAC;IACJ,CAAC;IACD,OAAO,UAAU,IAAI,EAAE,CAAC;AAC1B,CAAC;AArBD,gEAqBC"}
|
|
@@ -43,6 +43,9 @@ import type underscoreString from 'underscore.string';
|
|
|
43
43
|
import type unzipper from 'unzipper';
|
|
44
44
|
import type url from 'url';
|
|
45
45
|
import type uuid from 'uuid';
|
|
46
|
+
import type IORedis from 'ioredis';
|
|
47
|
+
import type lodashFp from 'lodash/fp';
|
|
48
|
+
import type csvSync from 'csv/lib/sync';
|
|
46
49
|
type ParagonUtils = {
|
|
47
50
|
mapIntegrationObjects: (mapping: Record<string, any>, objects: Record<string, any>[]) => Record<string, any>[];
|
|
48
51
|
mapApplicationObjects: (mapping: Record<string, any>, objects: Record<string, any>[]) => Record<string, any>[];
|
|
@@ -99,5 +102,15 @@ export type FunctionStepLibraries = {
|
|
|
99
102
|
uuid: typeof uuid;
|
|
100
103
|
web3: any;
|
|
101
104
|
paragonUtils: ParagonUtils;
|
|
105
|
+
libphonenumber: typeof import('libphonenumber-js/min');
|
|
106
|
+
ioredis: typeof IORedis;
|
|
107
|
+
'parquetjs-lite': any;
|
|
108
|
+
mime: any;
|
|
109
|
+
'csv/lib/sync': typeof csvSync;
|
|
110
|
+
'lodash/fp': typeof lodashFp;
|
|
111
|
+
'@aws-sdk/client-sqs': typeof import('@aws-sdk/client-sqs');
|
|
112
|
+
'@aws-sdk/lib-dynamodb': typeof import('@aws-sdk/lib-dynamodb');
|
|
113
|
+
'@aws-sdk/lib-storage': typeof import('@aws-sdk/lib-storage');
|
|
114
|
+
'@azure/storage-blob': typeof import('@azure/storage-blob');
|
|
102
115
|
};
|
|
103
116
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useparagon/core",
|
|
3
|
-
"version": "1.1.1
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Core libraries for paragraph",
|
|
5
5
|
"repository": "https://github.com/useparagon/paragraph",
|
|
6
6
|
"packageManager": "pnpm@8.10.5",
|
|
@@ -36,7 +36,12 @@
|
|
|
36
36
|
"uuid": "^9.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@aws-sdk/client-sqs": "^3.848.0",
|
|
40
|
+
"@aws-sdk/lib-dynamodb": "^3.848.0",
|
|
41
|
+
"@aws-sdk/lib-storage": "^3.723.0",
|
|
42
|
+
"@azure/storage-blob": "^12.18.0",
|
|
39
43
|
"@sendgrid/mail": "^7.6.0",
|
|
44
|
+
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
|
|
40
45
|
"@types/analytics-node": "^3.1.14",
|
|
41
46
|
"@types/archiver": "^5.3.2",
|
|
42
47
|
"@types/bluebird": "^3.5.42",
|
|
@@ -54,7 +59,6 @@
|
|
|
54
59
|
"@types/oauth": "^0.9.4",
|
|
55
60
|
"@types/pg": "^8.10.9",
|
|
56
61
|
"@types/postlight__mercury-parser": "^2.2.7",
|
|
57
|
-
"@trivago/prettier-plugin-sort-imports": "^4.2.0",
|
|
58
62
|
"@types/ramda": "^0.29.9",
|
|
59
63
|
"@types/snowflake-sdk": "^1.6.20",
|
|
60
64
|
"@types/ssh2-sftp-client": "^5.2.2",
|
|
@@ -75,6 +79,8 @@
|
|
|
75
79
|
"fast-xml-parser": "^3.20.3",
|
|
76
80
|
"firebase": "^9.0.2",
|
|
77
81
|
"form-data": "^4.0.0",
|
|
82
|
+
"ioredis": "^5.3.2",
|
|
83
|
+
"libphonenumber-js": "^1.12.6",
|
|
78
84
|
"mailgun.js": "^8.0.2",
|
|
79
85
|
"moment": "^2.24.0",
|
|
80
86
|
"mysql2": "^3.9.7",
|