@activepieces/shared 0.10.47 → 0.10.49
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/package.json +2 -2
- package/src/lib/app-connection/app-connection.d.ts +2 -2
- package/src/lib/app-connection/app-connection.js +1 -1
- package/src/lib/app-connection/app-connection.js.map +1 -1
- package/src/lib/app-connection/dto/read-app-connection-request.d.ts +1 -1
- package/src/lib/app-connection/dto/read-app-connection-request.js +1 -1
- package/src/lib/app-connection/dto/read-app-connection-request.js.map +1 -1
- package/src/lib/app-connection/dto/upsert-app-connection-request.d.ts +12 -12
- package/src/lib/app-connection/dto/upsert-app-connection-request.js +1 -1
- package/src/lib/app-connection/dto/upsert-app-connection-request.js.map +1 -1
- package/src/lib/common/activepieces-error.d.ts +6 -2
- package/src/lib/common/activepieces-error.js +1 -0
- package/src/lib/common/activepieces-error.js.map +1 -1
- package/src/lib/user/user-dto.d.ts +1 -0
- package/src/lib/user/user.d.ts +3 -3
- package/src/lib/user/user.js +5 -7
- package/src/lib/user/user.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/shared",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.49",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
7
7
|
"nanoid": "3.3.6",
|
|
8
8
|
"semver": "7.5.4",
|
|
9
|
-
"tslib": "
|
|
9
|
+
"tslib": "1.14.1"
|
|
10
10
|
},
|
|
11
11
|
"main": "./src/index.js"
|
|
12
12
|
}
|
|
@@ -58,7 +58,7 @@ export type AppConnectionValue<T extends AppConnectionType = AppConnectionType>
|
|
|
58
58
|
export type AppConnection<Type extends AppConnectionType = AppConnectionType> = BaseModel<AppConnectionId> & {
|
|
59
59
|
name: string;
|
|
60
60
|
type: Type;
|
|
61
|
-
|
|
61
|
+
pieceName: string;
|
|
62
62
|
projectId: string;
|
|
63
63
|
status: AppConnectionStatus;
|
|
64
64
|
value: AppConnectionValue<Type>;
|
|
@@ -72,7 +72,7 @@ export type CustomAuthConnection = AppConnection<AppConnectionType.CUSTOM_AUTH>;
|
|
|
72
72
|
export declare const AppConnectionWithoutSensitiveData: import("@sinclair/typebox").TObject<{
|
|
73
73
|
name: import("@sinclair/typebox").TString<string>;
|
|
74
74
|
type: import("@sinclair/typebox").TEnum<typeof AppConnectionType>;
|
|
75
|
-
|
|
75
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
76
76
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
77
77
|
status: import("@sinclair/typebox").TEnum<typeof AppConnectionStatus>;
|
|
78
78
|
id: import("@sinclair/typebox").TString<string>;
|
|
@@ -18,7 +18,7 @@ var AppConnectionType;
|
|
|
18
18
|
AppConnectionType["BASIC_AUTH"] = "BASIC_AUTH";
|
|
19
19
|
AppConnectionType["CUSTOM_AUTH"] = "CUSTOM_AUTH";
|
|
20
20
|
})(AppConnectionType || (exports.AppConnectionType = AppConnectionType = {}));
|
|
21
|
-
exports.AppConnectionWithoutSensitiveData = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { name: typebox_1.Type.String(), type: typebox_1.Type.Enum(AppConnectionType),
|
|
21
|
+
exports.AppConnectionWithoutSensitiveData = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { name: typebox_1.Type.String(), type: typebox_1.Type.Enum(AppConnectionType), pieceName: typebox_1.Type.String(), projectId: id_generator_1.ApId, status: typebox_1.Type.Enum(AppConnectionStatus) }), {
|
|
22
22
|
description: 'App connection is a connection to an external app.',
|
|
23
23
|
});
|
|
24
24
|
//# sourceMappingURL=app-connection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-connection.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/app-connection/app-connection.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qDAAiE;AAEjE,yDAA6C;AAK7C,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACnB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,sCAAiB,CAAA;IACjB,wDAAmC,CAAA;IACnC,kDAA6B,CAAA;IAC7B,gDAA2B,CAAA;IAC3B,8CAAyB,CAAA;IACzB,gDAA2B,CAAA;AAC/B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAwEY,QAAA,iCAAiC,GAAG,cAAI,CAAC,MAAM,iCACrD,4BAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,IAAI,EAAE,cAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAClC,
|
|
1
|
+
{"version":3,"file":"app-connection.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/app-connection/app-connection.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qDAAiE;AAEjE,yDAA6C;AAK7C,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACnB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IACzB,sCAAiB,CAAA;IACjB,wDAAmC,CAAA;IACnC,kDAA6B,CAAA;IAC7B,gDAA2B,CAAA;IAC3B,8CAAyB,CAAA;IACzB,gDAA2B,CAAA;AAC/B,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B;AAwEY,QAAA,iCAAiC,GAAG,cAAI,CAAC,MAAM,iCACrD,4BAAe,KAClB,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE,EACnB,IAAI,EAAE,cAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAClC,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,SAAS,EAAE,mBAAI,EACf,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,KACvC;IACC,WAAW,EAAE,oDAAoD;CACpE,CAAC,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { Static } from '@sinclair/typebox';
|
|
|
2
2
|
export declare const ListAppConnectionsRequestQuery: import("@sinclair/typebox").TObject<{
|
|
3
3
|
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
4
4
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
5
|
-
|
|
5
|
+
pieceName: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
6
6
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
7
7
|
}>;
|
|
8
8
|
export type ListAppConnectionsRequestQuery = Static<typeof ListAppConnectionsRequestQuery>;
|
|
@@ -5,7 +5,7 @@ const typebox_1 = require("@sinclair/typebox");
|
|
|
5
5
|
exports.ListAppConnectionsRequestQuery = typebox_1.Type.Object({
|
|
6
6
|
cursor: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
7
7
|
projectId: typebox_1.Type.String(),
|
|
8
|
-
|
|
8
|
+
pieceName: typebox_1.Type.Optional(typebox_1.Type.String({})),
|
|
9
9
|
limit: typebox_1.Type.Optional(typebox_1.Type.Number({})),
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=read-app-connection-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-app-connection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/app-connection/dto/read-app-connection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAEnC,QAAA,8BAA8B,GAAG,cAAI,CAAC,MAAM,CAAC;IACtD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,
|
|
1
|
+
{"version":3,"file":"read-app-connection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/app-connection/dto/read-app-connection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAEnC,QAAA,8BAA8B,GAAG,cAAI,CAAC,MAAM,CAAC;IACtD,MAAM,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtC,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACzC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CACxC,CAAC,CAAA"}
|
|
@@ -12,7 +12,7 @@ export declare const UpsertCustomAuthRequest: import("@sinclair/typebox").TObjec
|
|
|
12
12
|
props: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>;
|
|
13
13
|
}>;
|
|
14
14
|
name: import("@sinclair/typebox").TString<string>;
|
|
15
|
-
|
|
15
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
16
16
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
17
17
|
}>;
|
|
18
18
|
export declare const UpsertPlatformOAuth2Request: import("@sinclair/typebox").TObject<{
|
|
@@ -29,7 +29,7 @@ export declare const UpsertPlatformOAuth2Request: import("@sinclair/typebox").TO
|
|
|
29
29
|
redirect_url: import("@sinclair/typebox").TString<string>;
|
|
30
30
|
}>;
|
|
31
31
|
name: import("@sinclair/typebox").TString<string>;
|
|
32
|
-
|
|
32
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
33
33
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
34
34
|
}>;
|
|
35
35
|
export declare const UpsertCloudOAuth2Request: import("@sinclair/typebox").TObject<{
|
|
@@ -45,7 +45,7 @@ export declare const UpsertCloudOAuth2Request: import("@sinclair/typebox").TObje
|
|
|
45
45
|
token_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
46
46
|
}>;
|
|
47
47
|
name: import("@sinclair/typebox").TString<string>;
|
|
48
|
-
|
|
48
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
49
49
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
50
50
|
}>;
|
|
51
51
|
export declare const UpsertSecretTextRequest: import("@sinclair/typebox").TObject<{
|
|
@@ -55,7 +55,7 @@ export declare const UpsertSecretTextRequest: import("@sinclair/typebox").TObjec
|
|
|
55
55
|
secret_text: import("@sinclair/typebox").TString<string>;
|
|
56
56
|
}>;
|
|
57
57
|
name: import("@sinclair/typebox").TString<string>;
|
|
58
|
-
|
|
58
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
59
59
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
60
60
|
}>;
|
|
61
61
|
export declare const UpsertOAuth2Request: import("@sinclair/typebox").TObject<{
|
|
@@ -74,7 +74,7 @@ export declare const UpsertOAuth2Request: import("@sinclair/typebox").TObject<{
|
|
|
74
74
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.OAUTH2>;
|
|
75
75
|
}>;
|
|
76
76
|
name: import("@sinclair/typebox").TString<string>;
|
|
77
|
-
|
|
77
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
78
78
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
79
79
|
}>;
|
|
80
80
|
export declare const UpsertBasicAuthRequest: import("@sinclair/typebox").TObject<{
|
|
@@ -85,7 +85,7 @@ export declare const UpsertBasicAuthRequest: import("@sinclair/typebox").TObject
|
|
|
85
85
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.BASIC_AUTH>;
|
|
86
86
|
}>;
|
|
87
87
|
name: import("@sinclair/typebox").TString<string>;
|
|
88
|
-
|
|
88
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
89
89
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
90
90
|
}>;
|
|
91
91
|
export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
|
|
@@ -95,7 +95,7 @@ export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox")
|
|
|
95
95
|
secret_text: import("@sinclair/typebox").TString<string>;
|
|
96
96
|
}>;
|
|
97
97
|
name: import("@sinclair/typebox").TString<string>;
|
|
98
|
-
|
|
98
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
99
99
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
100
100
|
}>, import("@sinclair/typebox").TObject<{
|
|
101
101
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.OAUTH2>;
|
|
@@ -113,7 +113,7 @@ export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox")
|
|
|
113
113
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.OAUTH2>;
|
|
114
114
|
}>;
|
|
115
115
|
name: import("@sinclair/typebox").TString<string>;
|
|
116
|
-
|
|
116
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
117
117
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
118
118
|
}>, import("@sinclair/typebox").TObject<{
|
|
119
119
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.CLOUD_OAUTH2>;
|
|
@@ -128,7 +128,7 @@ export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox")
|
|
|
128
128
|
token_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
129
129
|
}>;
|
|
130
130
|
name: import("@sinclair/typebox").TString<string>;
|
|
131
|
-
|
|
131
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
132
132
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
133
133
|
}>, import("@sinclair/typebox").TObject<{
|
|
134
134
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.PLATFORM_OAUTH2>;
|
|
@@ -144,7 +144,7 @@ export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox")
|
|
|
144
144
|
redirect_url: import("@sinclair/typebox").TString<string>;
|
|
145
145
|
}>;
|
|
146
146
|
name: import("@sinclair/typebox").TString<string>;
|
|
147
|
-
|
|
147
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
148
148
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
149
149
|
}>, import("@sinclair/typebox").TObject<{
|
|
150
150
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.BASIC_AUTH>;
|
|
@@ -154,7 +154,7 @@ export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox")
|
|
|
154
154
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.BASIC_AUTH>;
|
|
155
155
|
}>;
|
|
156
156
|
name: import("@sinclair/typebox").TString<string>;
|
|
157
|
-
|
|
157
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
158
158
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
159
159
|
}>, import("@sinclair/typebox").TObject<{
|
|
160
160
|
type: import("@sinclair/typebox").TLiteral<AppConnectionType.CUSTOM_AUTH>;
|
|
@@ -163,7 +163,7 @@ export declare const UpsertAppConnectionRequestBody: import("@sinclair/typebox")
|
|
|
163
163
|
props: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString<string>, import("@sinclair/typebox").TUnknown>;
|
|
164
164
|
}>;
|
|
165
165
|
name: import("@sinclair/typebox").TString<string>;
|
|
166
|
-
|
|
166
|
+
pieceName: import("@sinclair/typebox").TString<string>;
|
|
167
167
|
projectId: import("@sinclair/typebox").TString<string>;
|
|
168
168
|
}>]>;
|
|
169
169
|
export type UpsertCloudOAuth2Request = Static<typeof UpsertCloudOAuth2Request>;
|
|
@@ -6,7 +6,7 @@ const app_connection_1 = require("../app-connection");
|
|
|
6
6
|
const oauth2_authorization_method_1 = require("../oauth2-authorization-method");
|
|
7
7
|
const commonAuthProps = {
|
|
8
8
|
name: typebox_1.Type.String({}),
|
|
9
|
-
|
|
9
|
+
pieceName: typebox_1.Type.String({}),
|
|
10
10
|
projectId: typebox_1.Type.String({}),
|
|
11
11
|
};
|
|
12
12
|
var OAuth2GrantType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-app-connection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/app-connection/dto/upsert-app-connection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sDAAqD;AACrD,gFAA0E;AAE1E,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"upsert-app-connection-request.js","sourceRoot":"","sources":["../../../../../../../packages/shared/src/lib/app-connection/dto/upsert-app-connection-request.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,sDAAqD;AACrD,gFAA0E;AAE1E,MAAM,eAAe,GAAG;IACpB,IAAI,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IACrB,SAAS,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;IAC1B,SAAS,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,CAAC;CAC7B,CAAA;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,4DAAyC,CAAA;IACzC,4DAAyC,CAAA;AAC7C,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAEY,QAAA,uBAAuB,GAAG,cAAI,CAAC,MAAM,iCAC3C,eAAe,KAClB,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,kCAAiB,CAAC,WAAW,CAAC,EACjD,KAAK,EAAE,cAAI,CAAC,MAAM,CAAC;QACf,IAAI,EAAE,cAAI,CAAC,OAAO,CAAC,kCAAiB,CAAC,WAAW,CAAC;QACjD,KAAK,EAAE,cAAI,CAAC,MAAM,CAAC,cAAI,CAAC,MAAM,EAAE,EAAE,cAAI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C;IACrD,+BAAuB;IACvB,2BAAmB;IACnB,gCAAwB;IACxB,mCAA2B;IAC3B,8BAAsB;IACtB,+BAAuB;CAC1B,CAAC,CAAA"}
|
|
@@ -8,7 +8,7 @@ export declare class ActivepiecesError extends Error {
|
|
|
8
8
|
error: ErrorParams;
|
|
9
9
|
constructor(error: ErrorParams, message?: string);
|
|
10
10
|
}
|
|
11
|
-
type ErrorParams = AppConnectionNotFoundErrorParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams;
|
|
11
|
+
type ErrorParams = AppConnectionNotFoundErrorParams | AuthorizationErrorParams | ConfigNotFoundErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExecutionTimeoutErrorParams | ExistingUserErrorParams | FileNotFoundErrorParams | FlowNotFoundErrorParams | FlowOperationErrorParams | FlowRunNotFoundErrorParams | FlowVersionNotFoundErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | PieceNotFoundErrorParams | PieceTriggerNotFoundErrorParams | QuotaExceededParams | SignUpDisabledParams | StepNotFoundErrorParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerDisableErrorParams | TriggerEnableErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams;
|
|
12
12
|
export type BaseErrorParams<T, V> = {
|
|
13
13
|
code: T;
|
|
14
14
|
params: V;
|
|
@@ -20,7 +20,7 @@ export type InvalidClaimParams = BaseErrorParams<ErrorCode.INVALID_CLAIM, {
|
|
|
20
20
|
clientId: string;
|
|
21
21
|
}>;
|
|
22
22
|
export type InvalidCloudClaimParams = BaseErrorParams<ErrorCode.INVALID_CLOUD_CLAIM, {
|
|
23
|
-
|
|
23
|
+
pieceName: string;
|
|
24
24
|
}>;
|
|
25
25
|
export type InvalidBearerTokenParams = BaseErrorParams<ErrorCode.INVALID_BEARER_TOKEN, {
|
|
26
26
|
message?: string;
|
|
@@ -55,6 +55,9 @@ export type InvalidCredentialsErrorParams = BaseErrorParams<ErrorCode.INVALID_CR
|
|
|
55
55
|
export type EmailIsNotVerifiedErrorParams = BaseErrorParams<ErrorCode.EMAIL_IS_NOT_VERIFIED, {
|
|
56
56
|
email: string;
|
|
57
57
|
}>;
|
|
58
|
+
export type UserIsInActiveErrorParams = BaseErrorParams<ErrorCode.USER_IS_INACTIVE, {
|
|
59
|
+
email: string;
|
|
60
|
+
}>;
|
|
58
61
|
export type ExistingUserErrorParams = BaseErrorParams<ErrorCode.EXISTING_USER, {
|
|
59
62
|
email: string;
|
|
60
63
|
platformId: string | null;
|
|
@@ -167,6 +170,7 @@ export declare enum ErrorCode {
|
|
|
167
170
|
TRIGGER_DISABLE = "TRIGGER_DISABLE",
|
|
168
171
|
TRIGGER_ENABLE = "TRIGGER_ENABLE",
|
|
169
172
|
TRIGGER_FAILED = "TRIGGER_FAILED",
|
|
173
|
+
USER_IS_INACTIVE = "USER_IS_INACTIVE",
|
|
170
174
|
VALIDATION = "VALIDATION"
|
|
171
175
|
}
|
|
172
176
|
export {};
|
|
@@ -48,6 +48,7 @@ var ErrorCode;
|
|
|
48
48
|
ErrorCode["TRIGGER_DISABLE"] = "TRIGGER_DISABLE";
|
|
49
49
|
ErrorCode["TRIGGER_ENABLE"] = "TRIGGER_ENABLE";
|
|
50
50
|
ErrorCode["TRIGGER_FAILED"] = "TRIGGER_FAILED";
|
|
51
|
+
ErrorCode["USER_IS_INACTIVE"] = "USER_IS_INACTIVE";
|
|
51
52
|
ErrorCode["VALIDATION"] = "VALIDATION";
|
|
52
53
|
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
|
|
53
54
|
//# sourceMappingURL=activepieces-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAOA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAkB,EAAE,OAAgB;QACnD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACJ;AAJD,8CAIC;
|
|
1
|
+
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAOA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAkB,EAAE,OAAgB;QACnD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACJ;AAJD,8CAIC;AA2SD,IAAY,SAyCX;AAzCD,WAAY,SAAS;IACjB,kEAAqD,CAAA;IACrD,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;IACrC,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,kDAAqC,CAAA;IACrC,oDAAuC,CAAA;IACvC,4CAA+B,CAAA;IAC/B,8CAAiC,CAAA;IACjC,2DAA8C,CAAA;IAC9C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,sDAAyC,CAAA;IACzC,8DAAiD,CAAA;IACjD,gDAAmC,CAAA;IACnC,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wCAA2B,CAAA;IAC3B,kEAAqD,CAAA;IACrD,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,gEAAmD,CAAA;IACnD,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,8CAAiC,CAAA;IACjC,wDAA2C,CAAA;IAC3C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;IACnC,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;AAC7B,CAAC,EAzCW,SAAS,yBAAT,SAAS,QAyCpB"}
|
|
@@ -12,6 +12,7 @@ export declare const UserResponse: import("@sinclair/typebox").TObject<{
|
|
|
12
12
|
lastName: import("@sinclair/typebox").TString<string>;
|
|
13
13
|
trackEvents: import("@sinclair/typebox").TBoolean;
|
|
14
14
|
newsLetter: import("@sinclair/typebox").TBoolean;
|
|
15
|
+
verified: import("@sinclair/typebox").TBoolean;
|
|
15
16
|
imageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
16
17
|
}>;
|
|
17
18
|
export type UserResponse = Static<typeof UserResponse>;
|
package/src/lib/user/user.d.ts
CHANGED
|
@@ -2,9 +2,8 @@ import { Static } from '@sinclair/typebox';
|
|
|
2
2
|
import { ApId } from '../common/id-generator';
|
|
3
3
|
export type UserId = ApId;
|
|
4
4
|
export declare enum UserStatus {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
SUSPENDED = "SUSPENDED"
|
|
5
|
+
ACTIVE = "ACTIVE",
|
|
6
|
+
INACTIVE = "INACTIVE"
|
|
8
7
|
}
|
|
9
8
|
export declare const EmailType: import("@sinclair/typebox").TString<"email">;
|
|
10
9
|
export declare const PasswordType: import("@sinclair/typebox").TString<string>;
|
|
@@ -15,6 +14,7 @@ export declare const User: import("@sinclair/typebox").TObject<{
|
|
|
15
14
|
trackEvents: import("@sinclair/typebox").TBoolean;
|
|
16
15
|
newsLetter: import("@sinclair/typebox").TBoolean;
|
|
17
16
|
password: import("@sinclair/typebox").TString<string>;
|
|
17
|
+
verified: import("@sinclair/typebox").TBoolean;
|
|
18
18
|
status: import("@sinclair/typebox").TEnum<typeof UserStatus>;
|
|
19
19
|
imageUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
|
20
20
|
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString<string>>;
|
package/src/lib/user/user.js
CHANGED
|
@@ -6,12 +6,10 @@ const base_model_1 = require("../common/base-model");
|
|
|
6
6
|
const id_generator_1 = require("../common/id-generator");
|
|
7
7
|
var UserStatus;
|
|
8
8
|
(function (UserStatus) {
|
|
9
|
-
/* user
|
|
10
|
-
UserStatus["
|
|
11
|
-
/* user
|
|
12
|
-
UserStatus["
|
|
13
|
-
/* user is disabled */
|
|
14
|
-
UserStatus["SUSPENDED"] = "SUSPENDED";
|
|
9
|
+
/* user is active */
|
|
10
|
+
UserStatus["ACTIVE"] = "ACTIVE";
|
|
11
|
+
/* user account deactivated */
|
|
12
|
+
UserStatus["INACTIVE"] = "INACTIVE";
|
|
15
13
|
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
16
14
|
exports.EmailType = typebox_1.Type.String({
|
|
17
15
|
format: 'email',
|
|
@@ -20,7 +18,7 @@ exports.PasswordType = typebox_1.Type.String({
|
|
|
20
18
|
minLength: 8,
|
|
21
19
|
maxLength: 64,
|
|
22
20
|
});
|
|
23
|
-
exports.User = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { email: typebox_1.Type.String(), firstName: typebox_1.Type.String(), lastName: typebox_1.Type.String(), trackEvents: typebox_1.Type.Boolean(), newsLetter: typebox_1.Type.Boolean(), password: typebox_1.Type.String(), status: typebox_1.Type.Enum(UserStatus), imageUrl: typebox_1.Type.Optional(typebox_1.Type.String()), title: typebox_1.Type.Optional(typebox_1.Type.String()), externalId: typebox_1.Type.Optional(typebox_1.Type.String()), platformId: typebox_1.Type.Union([id_generator_1.ApId, typebox_1.Type.Null()]) }));
|
|
21
|
+
exports.User = typebox_1.Type.Object(Object.assign(Object.assign({}, base_model_1.BaseModelSchema), { email: typebox_1.Type.String(), firstName: typebox_1.Type.String(), lastName: typebox_1.Type.String(), trackEvents: typebox_1.Type.Boolean(), newsLetter: typebox_1.Type.Boolean(), password: typebox_1.Type.String(), verified: typebox_1.Type.Boolean(), status: typebox_1.Type.Enum(UserStatus), imageUrl: typebox_1.Type.Optional(typebox_1.Type.String()), title: typebox_1.Type.Optional(typebox_1.Type.String()), externalId: typebox_1.Type.Optional(typebox_1.Type.String()), platformId: typebox_1.Type.Union([id_generator_1.ApId, typebox_1.Type.Null()]) }));
|
|
24
22
|
exports.UserMeta = typebox_1.Type.Object({
|
|
25
23
|
id: typebox_1.Type.String(),
|
|
26
24
|
email: typebox_1.Type.String(),
|
package/src/lib/user/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/user/user.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qDAAsD;AACtD,yDAA6C;AAI7C,IAAY,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/user/user.ts"],"names":[],"mappings":";;;AAAA,+CAAgD;AAChD,qDAAsD;AACtD,yDAA6C;AAI7C,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,oBAAoB;IACpB,+BAAiB,CAAA;IACjB,8BAA8B;IAC9B,mCAAqB,CAAA;AACzB,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAEY,QAAA,SAAS,GAAG,cAAI,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,OAAO;CAClB,CAAC,CAAA;AAEW,QAAA,YAAY,GAAG,cAAI,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,CAAC;IACZ,SAAS,EAAE,EAAE;CAChB,CAAC,CAAA;AAEW,QAAA,IAAI,GAAG,cAAI,CAAC,MAAM,iCACxB,4BAAe,KAClB,KAAK,EAAE,cAAI,CAAC,MAAM,EAAE,EACpB,SAAS,EAAE,cAAI,CAAC,MAAM,EAAE,EACxB,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE,EACvB,WAAW,EAAE,cAAI,CAAC,OAAO,EAAE,EAC3B,UAAU,EAAE,cAAI,CAAC,OAAO,EAAE,EAC1B,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE,EACvB,QAAQ,EAAE,cAAI,CAAC,OAAO,EAAE,EACxB,MAAM,EAAE,cAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAC7B,QAAQ,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACtC,KAAK,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EACnC,UAAU,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EA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