@qoretechnologies/ts-toolkit 0.5.3 → 0.5.5
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/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/qore/QoreAppCreator.d.ts +5 -3
- package/dist/qore/QoreAppCreator.d.ts.map +1 -1
- package/dist/qore/QoreAppCreator.js.map +1 -1
- package/dist/qore/qoreAppExample.d.ts +2 -0
- package/dist/qore/qoreAppExample.d.ts.map +1 -0
- package/dist/qore/qoreAppExample.js +51 -0
- package/dist/qore/qoreAppExample.js.map +1 -0
- package/dist/types/qore/actions.d.ts +78 -0
- package/dist/types/qore/actions.d.ts.map +1 -0
- package/dist/types/qore/actions.js +9 -0
- package/dist/types/qore/actions.js.map +1 -0
- package/dist/types/qore/apps.d.ts +113 -0
- package/dist/types/qore/apps.d.ts.map +1 -0
- package/dist/types/qore/apps.js +13 -0
- package/dist/types/qore/apps.js.map +1 -0
- package/dist/types/qore/options.d.ts +134 -0
- package/dist/types/qore/options.d.ts.map +1 -0
- package/dist/types/qore/options.js +3 -0
- package/dist/types/qore/options.js.map +1 -0
- package/dist/types/qore/types.d.ts +32 -0
- package/dist/types/qore/types.d.ts.map +1 -0
- package/dist/types/qore/types.js +3 -0
- package/dist/types/qore/types.js.map +1 -0
- package/dist/types/qore/utils.d.ts +10 -0
- package/dist/types/qore/utils.d.ts.map +1 -0
- package/dist/types/qore/utils.js +3 -0
- package/dist/types/qore/utils.js.map +1 -0
- package/package.json +1 -1
- package/dist/types/qore.d.ts +0 -284
- package/dist/types/qore.d.ts.map +0 -1
- package/dist/types/qore.js +0 -18
- package/dist/types/qore.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,11 @@ export { IDefaultHeaders } from './QorusRequest';
|
|
|
13
13
|
export { IApiPaths, IAuthenticatorApiPaths, IDataProviderApiPaths, IJobsApiPaths, TVersion } from './utils/apiPaths';
|
|
14
14
|
export * from './types/expressions';
|
|
15
15
|
export * from './types/forms';
|
|
16
|
-
export * from './types/qore';
|
|
16
|
+
export * from './types/qore/actions';
|
|
17
|
+
export * from './types/qore/apps';
|
|
18
|
+
export * from './types/qore/options';
|
|
19
|
+
export * from './types/qore/types';
|
|
20
|
+
export * from './types/qore/utils';
|
|
17
21
|
export * from './types/qorus';
|
|
18
22
|
export * from './types/utils';
|
|
19
23
|
/**
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,YAAY,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAErH,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc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
|
package/dist/index.js
CHANGED
|
@@ -47,7 +47,11 @@ var QorusValidator_1 = require("./QorusValidator");
|
|
|
47
47
|
Object.defineProperty(exports, "QorusValidator", { enumerable: true, get: function () { return __importDefault(QorusValidator_1).default; } });
|
|
48
48
|
__exportStar(require("./types/expressions"), exports);
|
|
49
49
|
__exportStar(require("./types/forms"), exports);
|
|
50
|
-
__exportStar(require("./types/qore"), exports);
|
|
50
|
+
__exportStar(require("./types/qore/actions"), exports);
|
|
51
|
+
__exportStar(require("./types/qore/apps"), exports);
|
|
52
|
+
__exportStar(require("./types/qore/options"), exports);
|
|
53
|
+
__exportStar(require("./types/qore/types"), exports);
|
|
54
|
+
__exportStar(require("./types/qore/utils"), exports);
|
|
51
55
|
__exportStar(require("./types/qorus"), exports);
|
|
52
56
|
__exportStar(require("./types/utils"), exports);
|
|
53
57
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAsD;AACtD,oEAAoD;AACpD,+DAA+C;AAC/C,8DAA8C;AAC9C,8DAA8C;AAE9C,wDAAuD;AAA9C,gHAAA,cAAc,OAAA;AACvB,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AACtC,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAMlC,sDAAoC;AACpC,gDAA8B;AAC9B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAsD;AACtD,oEAAoD;AACpD,+DAA+C;AAC/C,8DAA8C;AAC9C,8DAA8C;AAE9C,wDAAuD;AAA9C,gHAAA,cAAc,OAAA;AACvB,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AACtC,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,+CAAyD;AAAhD,6HAAA,OAAO,OAAgB;AAChC,mDAA6D;AAApD,iIAAA,OAAO,OAAkB;AAMlC,sDAAoC;AACpC,gDAA8B;AAC9B,uDAAqC;AACrC,oDAAkC;AAClC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,gDAA8B;AAC9B,gDAA8B"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TQoreAppAction, TQoreAppEventAction, TQoreAppNonEventAction } from '../types/qore/actions';
|
|
2
|
+
import { IQoreAppSharedNotLocalized, TQoreAppWithActions } from '../types/qore/apps';
|
|
3
|
+
import { TQoreOptions, TQoreOptionsNotLocalized } from '../types/qore/options';
|
|
2
4
|
export declare class QoreAppCreator {
|
|
3
|
-
static createTrigger<TOptions extends
|
|
5
|
+
static createTrigger<TOptions extends TQoreOptionsNotLocalized>(trigger: TQoreAppEventAction<TOptions> & IQoreAppSharedNotLocalized): TQoreAppEventAction<TOptions> & IQoreAppSharedNotLocalized;
|
|
4
6
|
static createLocalizedTrigger<TOptions extends TQoreOptions>(trigger: TQoreAppEventAction<TOptions>): TQoreAppEventAction<TOptions>;
|
|
5
|
-
static createAction<TOptions extends
|
|
7
|
+
static createAction<TOptions extends TQoreOptionsNotLocalized>(action: TQoreAppNonEventAction<TOptions> & IQoreAppSharedNotLocalized): TQoreAppNonEventAction<TOptions> & IQoreAppSharedNotLocalized;
|
|
6
8
|
static createLocalizedAction<TOptions extends TQoreOptions>(action: TQoreAppNonEventAction<TOptions>): TQoreAppNonEventAction<TOptions>;
|
|
7
9
|
static createApp<Actions extends TQoreAppAction<any>[]>(app: TQoreAppWithActions<Actions> & IQoreAppSharedNotLocalized): TQoreAppWithActions<Actions> & IQoreAppSharedNotLocalized;
|
|
8
10
|
static createLocalizedApp<Actions extends TQoreAppAction<any>[]>(app: TQoreAppWithActions<Actions>): TQoreAppWithActions<Actions>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QoreAppCreator.d.ts","sourceRoot":"","sources":["../../src/qore/QoreAppCreator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"QoreAppCreator.d.ts","sourceRoot":"","sources":["../../src/qore/QoreAppCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAG/E,qBAAa,cAAc;WAEX,aAAa,CAAC,QAAQ,SAAS,wBAAwB,EACnE,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC,GAAG,0BAA0B,GAClE,mBAAmB,CAAC,QAAQ,CAAC,GAAG,0BAA0B;WAS/C,sBAAsB,CAAC,QAAQ,SAAS,YAAY,EAChE,OAAO,EAAE,mBAAmB,CAAC,QAAQ,CAAC,GACrC,mBAAmB,CAAC,QAAQ,CAAC;WAKlB,YAAY,CAAC,QAAQ,SAAS,wBAAwB,EAClE,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,0BAA0B,GACpE,sBAAsB,CAAC,QAAQ,CAAC,GAAG,0BAA0B;WASlD,qBAAqB,CAAC,QAAQ,SAAS,YAAY,EAC/D,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GACvC,sBAAsB,CAAC,QAAQ,CAAC;WAKrB,SAAS,CAAC,OAAO,SAAS,cAAc,CAAC,GAAG,CAAC,EAAE,EAC3D,GAAG,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAAG,0BAA0B,GAC7D,mBAAmB,CAAC,OAAO,CAAC,GAAG,0BAA0B;WAS9C,kBAAkB,CAAC,OAAO,SAAS,cAAc,CAAC,GAAG,CAAC,EAAE,EACpE,GAAG,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAChC,mBAAmB,CAAC,OAAO,CAAC;CAGhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QoreAppCreator.js","sourceRoot":"","sources":["../../src/qore/QoreAppCreator.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"QoreAppCreator.js","sourceRoot":"","sources":["../../src/qore/QoreAppCreator.ts"],"names":[],"mappings":";;;AAIA,qCAAqC;AACrC,MAAa,cAAc;IACzB,qDAAqD;IAC9C,MAAM,CAAC,aAAa,CACzB,OAAmE;QAEnE,OAAO,OAAO,CAAC;IACjB,CAAC;IAED;;;;MAIE;IACK,MAAM,CAAC,sBAAsB,CAClC,OAAsC;QAEtC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,qDAAqD;IAC9C,MAAM,CAAC,YAAY,CACxB,MAAqE;QAErE,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;MAIE;IACK,MAAM,CAAC,qBAAqB,CACjC,MAAwC;QAExC,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,8CAA8C;IACvC,MAAM,CAAC,SAAS,CACrB,GAA8D;QAE9D,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;MAIE;IACK,MAAM,CAAC,kBAAkB,CAC9B,GAAiC;QAEjC,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAtDD,wCAsDC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qoreAppExample.d.ts","sourceRoot":"","sources":["../../src/qore/qoreAppExample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const apps_1 = require("../types/qore/apps");
|
|
4
|
+
const QoreAppCreator_1 = require("./QoreAppCreator");
|
|
5
|
+
const opts = {
|
|
6
|
+
string: {
|
|
7
|
+
type: 'softstring',
|
|
8
|
+
example_value: '123',
|
|
9
|
+
default_value: '123',
|
|
10
|
+
},
|
|
11
|
+
number: {
|
|
12
|
+
type: '*double',
|
|
13
|
+
example_value: 123,
|
|
14
|
+
default_value: 123,
|
|
15
|
+
get_default_value: () => 123,
|
|
16
|
+
get_allowed_values: (context) => {
|
|
17
|
+
var _a;
|
|
18
|
+
console.log((_a = context === null || context === void 0 ? void 0 : context.opts) === null || _a === void 0 ? void 0 : _a.string);
|
|
19
|
+
return [{ value: 123 }];
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
list: {
|
|
23
|
+
type: 'list',
|
|
24
|
+
example_value: [123],
|
|
25
|
+
default_value: [123],
|
|
26
|
+
allowed_values: [
|
|
27
|
+
{
|
|
28
|
+
value: 123,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
const act = QoreAppCreator_1.QoreAppCreator.createLocalizedAction({
|
|
34
|
+
action: 'test',
|
|
35
|
+
action_code: apps_1.EQoreAppActionCode.ACTION,
|
|
36
|
+
app: 'test',
|
|
37
|
+
options: opts,
|
|
38
|
+
});
|
|
39
|
+
QoreAppCreator_1.QoreAppCreator.createLocalizedApp({
|
|
40
|
+
actions: [act],
|
|
41
|
+
logo: 'test',
|
|
42
|
+
logo_file_name: 'test',
|
|
43
|
+
logo_mime_type: 'test',
|
|
44
|
+
name: 'Test',
|
|
45
|
+
swagger_schema_map: {
|
|
46
|
+
test: {
|
|
47
|
+
swagger: 'test.yaml',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
});
|
|
51
|
+
//# sourceMappingURL=qoreAppExample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qoreAppExample.js","sourceRoot":"","sources":["../../src/qore/qoreAppExample.ts"],"names":[],"mappings":";;AAAA,6CAAwD;AAExD,qDAAkD;AAElD,MAAM,IAAI,GAAiB;IACzB,MAAM,EAAE;QACN,IAAI,EAAE,YAAY;QAClB,aAAa,EAAE,KAAK;QACpB,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,SAAS;QACf,aAAa,EAAE,GAAG;QAClB,aAAa,EAAE,GAAG;QAClB,iBAAiB,EAAE,GAAG,EAAE,CAAC,GAAG;QAC5B,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;;YAC9B,OAAO,CAAC,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,0CAAE,MAAM,CAAC,CAAC;YACnC,OAAO,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QAC1B,CAAC;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,aAAa,EAAE,CAAC,GAAG,CAAC;QACpB,aAAa,EAAE,CAAC,GAAG,CAAC;QACpB,cAAc,EAAE;YACd;gBACE,KAAK,EAAE,GAAG;aACX;SACF;KACF;CACF,CAAC;AAEF,MAAM,GAAG,GAAG,+BAAc,CAAC,qBAAqB,CAAC;IAC/C,MAAM,EAAE,MAAM;IACd,WAAW,EAAE,yBAAkB,CAAC,MAAM;IACtC,GAAG,EAAE,MAAM;IACX,OAAO,EAAE,IAAI;CACd,CAAC,CAAC;AAEH,+BAAc,CAAC,kBAAkB,CAAC;IAChC,OAAO,EAAE,CAAC,GAAG,CAAC;IACd,IAAI,EAAE,MAAM;IACZ,cAAc,EAAE,MAAM;IACtB,cAAc,EAAE,MAAM;IACtB,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE;QAClB,IAAI,EAAE;YACJ,OAAO,EAAE,WAAW;SACrB;KACF;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { EQoreAppActionCode, IQoreAppShared, IQoreRestConnectionConfig } from './apps';
|
|
2
|
+
import { TCustomConnOptions, TQoreAppActionOption, TQoreAppActionOverrideOption, TQoreMappedOptions, TQoreOptions } from './options';
|
|
3
|
+
import { TQoreTypeObject } from './types';
|
|
4
|
+
export interface IQoreBaseAppAction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> extends IQoreAppShared {
|
|
5
|
+
app: string;
|
|
6
|
+
action: string;
|
|
7
|
+
action_code: EQoreAppActionCode;
|
|
8
|
+
override_options?: Record<string, TQoreAppActionOverrideOption<CustomConnOptions>>;
|
|
9
|
+
}
|
|
10
|
+
export type TQoreAppActionFunctionContext<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, Options extends TQoreOptions = TQoreOptions> = {
|
|
11
|
+
conn_name?: string;
|
|
12
|
+
conn_opts?: Partial<IQoreRestConnectionConfig> & TQoreMappedOptions<CustomConnOptions>;
|
|
13
|
+
opts?: TQoreMappedOptions<Options>;
|
|
14
|
+
};
|
|
15
|
+
export type TQoreAppActionFunction<Options extends TQoreOptions = TQoreOptions> = (obj?: TQoreMappedOptions<Options>, options?: never, context?: TQoreAppActionFunctionContext<TCustomConnOptions, Options>) => any;
|
|
16
|
+
export type TWebhookHttpMethod = 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
17
|
+
export interface IQoreAppActionWithEventOrWebhook<Options extends TQoreOptions = TQoreOptions> extends IQoreBaseAppAction {
|
|
18
|
+
action_code: EQoreAppActionCode.EVENT;
|
|
19
|
+
event_info: TQoreAppActionWithEventOrWebhookEventInfo;
|
|
20
|
+
options?: Options;
|
|
21
|
+
get_example_event_data?: (context: TQoreAppActionFunctionContext<TCustomConnOptions, Options>) => Record<string, any> | Promise<Record<string, any>>;
|
|
22
|
+
}
|
|
23
|
+
export type TQoreAppActionWithEventOrWebhookEventInfo = {
|
|
24
|
+
id?: string;
|
|
25
|
+
desc: string;
|
|
26
|
+
type: TQoreTypeObject;
|
|
27
|
+
};
|
|
28
|
+
export interface IQoreAppActionWithWebhookBase<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithEventOrWebhook<Options> {
|
|
29
|
+
webhook_method: TWebhookHttpMethod;
|
|
30
|
+
webhook_auth?: EQoreAppActionWebhookAuthType;
|
|
31
|
+
webhook_register: TWebhookRegisterFunction<CustomConnOptions, Options>;
|
|
32
|
+
webhook_deregister: TWebhookDeregisterFunction<CustomConnOptions>;
|
|
33
|
+
webhook_event_loc?: string;
|
|
34
|
+
webhook_echo_header?: string;
|
|
35
|
+
}
|
|
36
|
+
export type TWebhookRegisterFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, Options extends TQoreOptions = TQoreOptions> = (context: TQoreAppActionFunctionContext<CustomConnOptions, Options>, url: string) => Promise<Record<string, any> | void>;
|
|
37
|
+
export type TWebhookDeregisterFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = (context: TQoreAppActionFunctionContext<CustomConnOptions>, url: string, regInfo: Record<string, any>) => Promise<void>;
|
|
38
|
+
export interface IQoreAppActionWithWebhookWithoutPerms<Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithWebhookBase<TCustomConnOptions, Options> {
|
|
39
|
+
webhook_auth?: EQoreAppActionWebhookAuthType.AUTH_NONE;
|
|
40
|
+
webhook_perms?: never;
|
|
41
|
+
}
|
|
42
|
+
export interface IQoreAppActionWithWebhookWithPerms<Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithWebhookBase<TCustomConnOptions, Options> {
|
|
43
|
+
webhook_auth?: EQoreAppActionWebhookAuthType.AUTH_REQUIRE_AUTH;
|
|
44
|
+
webhook_perms?: string[];
|
|
45
|
+
}
|
|
46
|
+
export type TQoreAppActionWithWebhook<Options extends TQoreOptions = TQoreOptions> = IQoreAppActionWithWebhookWithoutPerms<Options> | IQoreAppActionWithWebhookWithPerms<Options>;
|
|
47
|
+
export interface IQoreAppActionWithEvent<Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithEventOrWebhook<Options> {
|
|
48
|
+
event_function: (context: TQoreAppActionFunctionContext<TCustomConnOptions, Options>, update: (event_data: Record<string, any>) => void, should_stop: () => boolean) => void;
|
|
49
|
+
}
|
|
50
|
+
export type TQoreResponseType = string | TQoreTypeObject;
|
|
51
|
+
export declare enum EQoreAppActionWebhookAuthType {
|
|
52
|
+
AUTH_NONE = 0,
|
|
53
|
+
AUTH_REQUIRE_AUTH = 1
|
|
54
|
+
}
|
|
55
|
+
export interface IQoreAppActionWithFunction<Options extends TQoreOptions = TQoreOptions, _Response = TQoreResponseType> extends IQoreBaseAppAction {
|
|
56
|
+
action_code: EQoreAppActionCode.ACTION;
|
|
57
|
+
api_function?: TQoreAppActionFunction<Options>;
|
|
58
|
+
options?: Options;
|
|
59
|
+
response_type?: TQoreResponseType;
|
|
60
|
+
io_timeout_secs?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface IQoreAppActionWithSwaggerPath extends IQoreBaseAppAction {
|
|
63
|
+
action_code: EQoreAppActionCode.ACTION;
|
|
64
|
+
swagger_path: string;
|
|
65
|
+
independent_path_vars?: string[];
|
|
66
|
+
}
|
|
67
|
+
export interface IQorePartialAppActionWithSwaggerPath extends Omit<IQoreBaseAppAction, 'app'> {
|
|
68
|
+
swagger_path: string;
|
|
69
|
+
action_code: EQoreAppActionCode.ACTION;
|
|
70
|
+
independent_path_vars?: string[];
|
|
71
|
+
}
|
|
72
|
+
export type TQoreAppNonEventAction<Options extends TQoreOptions = TQoreOptions, Response = TQoreResponseType> = IQoreAppActionWithFunction<Options, Response> | IQoreAppActionWithSwaggerPath;
|
|
73
|
+
export type TQoreAppEventAction<Options extends TQoreOptions = TQoreOptions> = IQoreAppActionWithEvent<Options> | TQoreAppActionWithWebhook<Options>;
|
|
74
|
+
export type TQoreAppAction<Options extends TQoreOptions = TQoreOptions, Response = TQoreResponseType> = TQoreAppNonEventAction<Options, Response> | TQoreAppEventAction<Options>;
|
|
75
|
+
export type TQorePartialNonEventAction<Options extends TQoreOptions = Record<string, TQoreAppActionOption>, Response = Record<string, TQoreTypeObject>> = Omit<IQoreAppActionWithFunction<Options, Response>, 'app'> | IQorePartialAppActionWithSwaggerPath;
|
|
76
|
+
export type TQorePartialEventAction<Options extends TQoreOptions = TQoreOptions> = Omit<TQoreAppActionWithWebhook<Options>, 'app'> | Omit<IQoreAppActionWithEvent<Options>, 'app'>;
|
|
77
|
+
export type TQorePartialAction<Options extends TQoreOptions = Record<string, TQoreAppActionOption>, Response = Record<string, TQoreTypeObject>> = TQorePartialNonEventAction<Options, Response> | TQorePartialEventAction<Options>;
|
|
78
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/types/qore/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AACvF,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,4BAA4B,EAC5B,kBAAkB,EAClB,YAAY,EACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,kBAAkB,CAAC,iBAAiB,SAAS,kBAAkB,GAAG,kBAAkB,CACnG,SAAQ,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,kBAAkB,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,4BAA4B,CAAC,iBAAiB,CAAC,CAAC,CAAC;CACpF;AAED,MAAM,MAAM,6BAA6B,CACvC,iBAAiB,SAAS,kBAAkB,GAAG,kBAAkB,EACjE,OAAO,SAAS,YAAY,GAAG,YAAY,IACzC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACvF,IAAI,CAAC,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAC;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YAAY,GAAG,YAAY,IACvE,uBAAuB,CAAC,OAAO,CAAC,GAChC,yBAAyB,CAAC,OAAO,CAAC,CAAC;AAEvC,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,YAAY,GAAG,YAAY,EAAE,QAAQ,GAAG,iBAAiB,IAChG,sBAAsB,CAAC,OAAO,EAAE,QAAQ,CAAC,GACzC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAEjC,MAAM,MAAM,0BAA0B,CACpC,OAAO,SAAS,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACnE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IACxC,IAAI,CAAC,0BAA0B,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,oCAAoC,CAAC;AAEtG,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,YAAY,GAAG,YAAY,IAC3E,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAC/C,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;AAElD,MAAM,MAAM,kBAAkB,CAC5B,OAAO,SAAS,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACnE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IACxC,0BAA0B,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EQoreAppActionWebhookAuthType = void 0;
|
|
4
|
+
var EQoreAppActionWebhookAuthType;
|
|
5
|
+
(function (EQoreAppActionWebhookAuthType) {
|
|
6
|
+
EQoreAppActionWebhookAuthType[EQoreAppActionWebhookAuthType["AUTH_NONE"] = 0] = "AUTH_NONE";
|
|
7
|
+
EQoreAppActionWebhookAuthType[EQoreAppActionWebhookAuthType["AUTH_REQUIRE_AUTH"] = 1] = "AUTH_REQUIRE_AUTH";
|
|
8
|
+
})(EQoreAppActionWebhookAuthType = exports.EQoreAppActionWebhookAuthType || (exports.EQoreAppActionWebhookAuthType = {}));
|
|
9
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/types/qore/actions.ts"],"names":[],"mappings":";;;AAyGA,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,2FAAa,CAAA;IACb,2GAAqB,CAAA;AACvB,CAAC,EAHW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAGxC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { TQoreAppAction, TQoreAppActionFunctionContext } from './actions';
|
|
2
|
+
import { IQoreConnectionOption, TQoreMappedOptions, TQoreOptions } from './options';
|
|
3
|
+
export interface IQoreAppShared {
|
|
4
|
+
display_name?: string;
|
|
5
|
+
short_desc?: string;
|
|
6
|
+
desc?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IQoreAppSharedNotLocalized {
|
|
9
|
+
display_name: string;
|
|
10
|
+
short_desc: string;
|
|
11
|
+
desc: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IQoreSwaggerConfig {
|
|
14
|
+
swagger?: string;
|
|
15
|
+
swagger_options?: {
|
|
16
|
+
parse_flags?: number;
|
|
17
|
+
};
|
|
18
|
+
swagger_paths?: string[];
|
|
19
|
+
swagger_type_overrides?: Record<string, any>;
|
|
20
|
+
swagger_utc_dates?: boolean;
|
|
21
|
+
swagger_query_date_format?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IQoreApp<RestModifierOptions extends Record<string, IQoreConnectionOption> = Record<string, IQoreConnectionOption>> extends IQoreSwaggerConfig, IQoreAppShared {
|
|
24
|
+
name: TStringWithFirstUpperCaseCharacter;
|
|
25
|
+
logo: string;
|
|
26
|
+
logo_file_name: string;
|
|
27
|
+
logo_mime_type: string;
|
|
28
|
+
rest?: IQoreRestConnectionConfig;
|
|
29
|
+
rest_modifiers?: IQoreRestConnectionModifiers<RestModifierOptions>;
|
|
30
|
+
swagger_schema_map?: Record<string, IQoreSwaggerConfig>;
|
|
31
|
+
}
|
|
32
|
+
export interface IQoreExistingApp {
|
|
33
|
+
name: TStringWithFirstUpperCaseCharacter;
|
|
34
|
+
module: string;
|
|
35
|
+
root_provider?: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IQoreExistingAppWithActions extends IQoreExistingApp {
|
|
38
|
+
actions: TQoreAppAction[];
|
|
39
|
+
}
|
|
40
|
+
export interface TQoreAppWithActions<Actions extends TQoreAppAction<TQoreOptions>[] = TQoreAppAction<TQoreOptions>[], RestModifierOptions extends Record<string, IQoreConnectionOption> = Record<string, IQoreConnectionOption>> extends IQoreApp<RestModifierOptions> {
|
|
41
|
+
actions: Actions;
|
|
42
|
+
}
|
|
43
|
+
export type TQoreApps = Record<string, TQoreAppWithActions>;
|
|
44
|
+
export type TQoreExistingApps = Record<string, IQoreExistingAppWithActions>;
|
|
45
|
+
export declare enum EQoreAppActionCode {
|
|
46
|
+
EVENT = 1,
|
|
47
|
+
ACTION = 2
|
|
48
|
+
}
|
|
49
|
+
export declare const QoreAppActionCodeToLocale: {
|
|
50
|
+
[key in EQoreAppActionCode]: string;
|
|
51
|
+
};
|
|
52
|
+
export type TFirstAppCharacter = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
53
|
+
export type TStringWithFirstUpperCaseCharacter = `${TFirstAppCharacter}${string}`;
|
|
54
|
+
type TQoreRestContentEncoding = 'gzip' | 'bzip2' | 'deflate' | 'identity';
|
|
55
|
+
type TQoreRestData = 'auto' | 'json' | 'yaml' | 'rawxml' | 'xml' | 'url' | 'text' | 'bin';
|
|
56
|
+
type TQoreRestOauth2GrantType = 'authorization_code' | 'client_credentials' | 'password' | 'none';
|
|
57
|
+
export interface IQoreRestConnectionConfig {
|
|
58
|
+
content_encoding?: TQoreRestContentEncoding;
|
|
59
|
+
data: TQoreRestData;
|
|
60
|
+
disable_automatic_pings?: boolean;
|
|
61
|
+
encode_chars?: string;
|
|
62
|
+
headers?: Record<string, string>;
|
|
63
|
+
oauth2_alt_url_subst?: Record<string, any>;
|
|
64
|
+
oauth2_auth_args?: Record<string, any>;
|
|
65
|
+
oauth2_auth_url?: string;
|
|
66
|
+
oauth2_auto_refresh?: boolean;
|
|
67
|
+
oauth2_client_id?: string;
|
|
68
|
+
oauth2_client_secret?: string | 'auto';
|
|
69
|
+
oauth2_grant_type?: TQoreRestOauth2GrantType;
|
|
70
|
+
oauth2_redirect_url?: string;
|
|
71
|
+
oauth2_refresh_token?: string;
|
|
72
|
+
oauth2_scopes?: string[];
|
|
73
|
+
oauth2_token_args?: Record<string, any>;
|
|
74
|
+
oauth2_token_auth_secret_only?: boolean;
|
|
75
|
+
oauth2_token_url?: string;
|
|
76
|
+
oauth2_token_use_basic_auth?: boolean;
|
|
77
|
+
oauth2_scope_separator_char?: string;
|
|
78
|
+
password?: string;
|
|
79
|
+
ping_method?: string;
|
|
80
|
+
ping_path?: string;
|
|
81
|
+
ping_headers?: Record<string, string>;
|
|
82
|
+
ping_body?: any;
|
|
83
|
+
proxy?: string;
|
|
84
|
+
rest_body_auth_error_check?: Record<string, any>;
|
|
85
|
+
ssl_cert_data?: string;
|
|
86
|
+
ssl_key_data?: string;
|
|
87
|
+
ssl_verify_cert?: boolean;
|
|
88
|
+
token?: string;
|
|
89
|
+
token_type?: string;
|
|
90
|
+
url: string;
|
|
91
|
+
username?: string;
|
|
92
|
+
swagger_base_path?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface IQoreRestConnectionModifiers<ModifierOptions extends Record<string, IQoreConnectionOption> = Record<string, IQoreConnectionOption>> {
|
|
95
|
+
options?: ModifierOptions;
|
|
96
|
+
required_options?: string;
|
|
97
|
+
url_template_options?: Array<string>;
|
|
98
|
+
set_options_post_auth?: (context: Omit<TQoreAppActionFunctionContext<ModifierOptions>, 'opts'>) => Promise<TQoreMappedOptions<ModifierOptions>> | TQoreMappedOptions<ModifierOptions>;
|
|
99
|
+
set_options_post_auth_code?: (context: Omit<TQoreAppActionFunctionContext<ModifierOptions>, 'opts'>) => TQoreMappedOptions<ModifierOptions>;
|
|
100
|
+
/** allows the REST URL to be changed when an option value is changed
|
|
101
|
+
*/
|
|
102
|
+
connection_update_option?: {
|
|
103
|
+
option: string;
|
|
104
|
+
code: (context: TQoreAppActionFunctionContext<ModifierOptions>) => string | void;
|
|
105
|
+
};
|
|
106
|
+
/** maps connection options (normally required options) that map to Swagger path options; the key is the request
|
|
107
|
+
option name, the value is the action option name; the value of the connection option will be used as the value
|
|
108
|
+
of the given action option in each call where the option is present
|
|
109
|
+
*/
|
|
110
|
+
conn_option_map?: Record<keyof ModifierOptions, string>;
|
|
111
|
+
}
|
|
112
|
+
export {};
|
|
113
|
+
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../../src/types/qore/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEpF,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,YAAY,EA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|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QoreAppActionCodeToLocale = exports.EQoreAppActionCode = void 0;
|
|
4
|
+
var EQoreAppActionCode;
|
|
5
|
+
(function (EQoreAppActionCode) {
|
|
6
|
+
EQoreAppActionCode[EQoreAppActionCode["EVENT"] = 1] = "EVENT";
|
|
7
|
+
EQoreAppActionCode[EQoreAppActionCode["ACTION"] = 2] = "ACTION";
|
|
8
|
+
})(EQoreAppActionCode = exports.EQoreAppActionCode || (exports.EQoreAppActionCode = {}));
|
|
9
|
+
exports.QoreAppActionCodeToLocale = {
|
|
10
|
+
[EQoreAppActionCode.EVENT]: 'triggers',
|
|
11
|
+
[EQoreAppActionCode.ACTION]: 'actions',
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=apps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../../src/types/qore/apps.ts"],"names":[],"mappings":";;;AAsEA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6DAAS,CAAA;IACT,+DAAU,CAAA;AACZ,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAEY,QAAA,yBAAyB,GAElC;IACF,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,UAAU;IACtC,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,SAAS;CACvC,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { IReqoreIconName } from '@qoretechnologies/reqore/dist/types/icons';
|
|
2
|
+
import { TQoreAppActionFunctionContext, TWebhookHttpMethod } from './actions';
|
|
3
|
+
import { IQoreAppShared, IQoreAppSharedNotLocalized } from './apps';
|
|
4
|
+
import { TQoreAnyType, TQoreBooleanCompatibleType, TQoreHashCompatibleType, TQoreListCompatibleType, TQoreNullableType, TQoreNumberCompatibleType, TQoreStringCompatibleType, TQoreTypeMapping } from './types';
|
|
5
|
+
export type TCustomConnOptions = Record<string, IQoreConnectionOption>;
|
|
6
|
+
export type TCustomFields<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = Record<string, TQoreAppActionOption<CustomConnOptions>>;
|
|
7
|
+
export type TQoreOptionOnChangeEvents = 'refetch';
|
|
8
|
+
export type TRestGetAllowedValuesMethod = TWebhookHttpMethod;
|
|
9
|
+
export interface IQoreConnectionOption extends Omit<TQoreAppActionOption, 'get_allowed_values' | 'get_dependent_options' | 'rest_get_allowed_values' | 'required'> {
|
|
10
|
+
freeform?: boolean;
|
|
11
|
+
sensitive?: boolean;
|
|
12
|
+
subset_env_vars?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export type TQoreGetAllowedValuesFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, TypeValue = unknown> = (context?: TQoreAppActionFunctionContext<CustomConnOptions>) => IQoreAllowedValue<TypeValue>[] | Promise<IQoreAllowedValue<TypeValue>[]>;
|
|
15
|
+
export type TQoreGetDefaultValueFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, TypeValue = unknown> = (context?: TQoreAppActionFunctionContext<CustomConnOptions>) => TypeValue | Promise<TypeValue>;
|
|
16
|
+
export type TQoreOptionType<Option> = Option extends {
|
|
17
|
+
type: keyof TQoreTypeMapping;
|
|
18
|
+
} ? TQoreTypeMapping[Option['type']] : never;
|
|
19
|
+
export type TQoreOptionsType<Options extends TQoreOptions | TCustomConnOptions = TQoreOptions> = {
|
|
20
|
+
[OptionKey in keyof Options]: TQoreOptionType<Options[OptionKey]>;
|
|
21
|
+
};
|
|
22
|
+
export type TQoreMappedOptions<T extends TQoreOptions | TCustomConnOptions> = TQoreOptionsType<T>;
|
|
23
|
+
export interface IQoreAllowedValue<TypeValue = unknown> extends IQoreAppShared {
|
|
24
|
+
value: TypeValue;
|
|
25
|
+
icon?: IReqoreIconName;
|
|
26
|
+
image?: string;
|
|
27
|
+
}
|
|
28
|
+
export type TQoreGetDependentOptionsFunction = (context?: TQoreAppActionFunctionContext) => Record<string, TQoreAppActionOption> | Promise<Record<string, TQoreAppActionOption>>;
|
|
29
|
+
export interface IQoreRestGetAllowedValues {
|
|
30
|
+
method: TWebhookHttpMethod;
|
|
31
|
+
path: string;
|
|
32
|
+
body?: Record<string, any>;
|
|
33
|
+
headers?: Record<string, any>;
|
|
34
|
+
values: string;
|
|
35
|
+
display_names?: string;
|
|
36
|
+
/** Descriptions are long, markdown-formatted string descriptions
|
|
37
|
+
*/
|
|
38
|
+
descriptions?: string;
|
|
39
|
+
/** Short descs are short, plain-text string descriptions
|
|
40
|
+
*/
|
|
41
|
+
short_descs?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface IQoreSharedObject<TypeValue = unknown> extends IQoreAppShared {
|
|
44
|
+
required?: boolean;
|
|
45
|
+
preselected?: boolean;
|
|
46
|
+
default_value?: TypeValue;
|
|
47
|
+
}
|
|
48
|
+
export interface IQoreAppActionBaseOption extends IQoreSharedObject {
|
|
49
|
+
get_dependent_options?: TQoreGetDependentOptionsFunction;
|
|
50
|
+
/** Mutually-exclusive with 'get_allowed_values'
|
|
51
|
+
*/
|
|
52
|
+
rest_get_allowed_values?: IQoreRestGetAllowedValues;
|
|
53
|
+
allowed_values_creatable?: boolean;
|
|
54
|
+
depends_on?: string[] | string[][];
|
|
55
|
+
attr?: Record<string, any>;
|
|
56
|
+
sensitive?: boolean;
|
|
57
|
+
required_groups?: string[];
|
|
58
|
+
on_change?: TQoreOptionOnChangeEvents[];
|
|
59
|
+
}
|
|
60
|
+
export interface IQoreAppActionStringOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
61
|
+
type: TQoreStringCompatibleType;
|
|
62
|
+
example_value?: string;
|
|
63
|
+
allowed_values?: IQoreAllowedValue<string>[];
|
|
64
|
+
default_value?: string;
|
|
65
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
66
|
+
*/
|
|
67
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, string>;
|
|
68
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, string>;
|
|
69
|
+
}
|
|
70
|
+
export interface IQoreAppActionBooleanOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
71
|
+
type: TQoreBooleanCompatibleType;
|
|
72
|
+
example_value?: boolean;
|
|
73
|
+
allowed_values?: IQoreAllowedValue<boolean>[];
|
|
74
|
+
default_value?: boolean;
|
|
75
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
76
|
+
*/
|
|
77
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, boolean>;
|
|
78
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, boolean>;
|
|
79
|
+
}
|
|
80
|
+
export interface IQoreAppActionListOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
81
|
+
type: TQoreListCompatibleType;
|
|
82
|
+
example_value?: unknown[];
|
|
83
|
+
allowed_values?: IQoreAllowedValue<unknown>[];
|
|
84
|
+
default_value?: unknown[];
|
|
85
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
86
|
+
*/
|
|
87
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, unknown>;
|
|
88
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, unknown[]>;
|
|
89
|
+
}
|
|
90
|
+
export interface IQoreAppActionObjectOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
91
|
+
type: TQoreHashCompatibleType;
|
|
92
|
+
example_value?: Record<string, unknown>;
|
|
93
|
+
allowed_values?: IQoreAllowedValue<Record<string, unknown>>[];
|
|
94
|
+
default_value?: Record<string, unknown>;
|
|
95
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
96
|
+
*/
|
|
97
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, Record<string, unknown>>;
|
|
98
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, Record<string, unknown>>;
|
|
99
|
+
}
|
|
100
|
+
export interface IQoreAppActionNumberOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
101
|
+
type: TQoreNumberCompatibleType;
|
|
102
|
+
example_value?: number;
|
|
103
|
+
allowed_values?: IQoreAllowedValue<number>[];
|
|
104
|
+
default_value?: number;
|
|
105
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
106
|
+
*/
|
|
107
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, number>;
|
|
108
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, number>;
|
|
109
|
+
}
|
|
110
|
+
export interface IQoreAppActionNullOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
111
|
+
type: TQoreNullableType;
|
|
112
|
+
example_value?: never;
|
|
113
|
+
allowed_values?: IQoreAllowedValue<never>[];
|
|
114
|
+
default_value?: never;
|
|
115
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
116
|
+
*/
|
|
117
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, never>;
|
|
118
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, never>;
|
|
119
|
+
}
|
|
120
|
+
export interface IQoreAppActionAnyOption<CustomConnOptions extends TCustomConnOptions> extends IQoreAppActionBaseOption {
|
|
121
|
+
type: TQoreAnyType;
|
|
122
|
+
example_value?: any;
|
|
123
|
+
allowed_values?: IQoreAllowedValue<any>[];
|
|
124
|
+
default_value?: any;
|
|
125
|
+
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
126
|
+
*/
|
|
127
|
+
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, any>;
|
|
128
|
+
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, any>;
|
|
129
|
+
}
|
|
130
|
+
export type TQoreAppActionOption<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = IQoreAppActionStringOption<CustomConnOptions> | IQoreAppActionNumberOption<CustomConnOptions> | IQoreAppActionBooleanOption<CustomConnOptions> | IQoreAppActionListOption<CustomConnOptions> | IQoreAppActionObjectOption<CustomConnOptions> | IQoreAppActionNullOption<CustomConnOptions> | IQoreAppActionAnyOption<CustomConnOptions>;
|
|
131
|
+
export type TQoreAppActionOverrideOption<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = Partial<TQoreAppActionOption<CustomConnOptions>>;
|
|
132
|
+
export type TQoreOptions = Record<string, TQoreAppActionOption>;
|
|
133
|
+
export type TQoreOptionsNotLocalized = Record<string, TQoreAppActionOption & IQoreAppSharedNotLocalized>;
|
|
134
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/types/qore/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC;AACpE,OAAO,EACL,YAAY,EACZ,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,iBAAiB,EACjB,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,aAAa,CAAC,iBAAiB,SAAS,kBAAkB,GAAG,kBAAkB,IAAI,MAAM,CACnG,MAAM,EACN,oBAAoB,CAAC,iBAAiB,CAAC,CACxC,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC;AAClD,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAAC;AAE7D,MAAM,WAA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1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/types/qore/options.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IQoreSharedObject, TQoreAppActionOption } from './options';
|
|
2
|
+
export type TQoreStringCompatibleType = 'string' | '*string' | 'softstring' | '*string' | 'binary' | 'date' | 'base64binary' | 'base64urlbinary' | 'hexbinary' | 'softdate' | '*softstring' | '*softdate' | '*binary' | '*date' | '*base64binary' | '*base64urlbinary' | '*hexbinary' | 'byte' | '*byte' | 'softbyte' | '*softbyte' | 'ubyte' | '*ubyte' | 'softubyte' | '*softubyte';
|
|
3
|
+
export type TQoreNumberCompatibleType = 'int' | '*number' | '*float' | '*double' | '*integer' | 'float' | 'number' | 'integer' | 'double' | 'softint' | 'softfloat' | 'softnumber' | '*softint' | '*softfloat' | '*softnumber' | '*int' | 'unixts' | '*unixts' | 'unixtsms' | '*unixtsms';
|
|
4
|
+
export type TQoreHashCompatibleType = 'hash' | '*hash' | '*data' | 'data';
|
|
5
|
+
export type TQoreListCompatibleType = 'list' | '*list' | 'softlist' | '*softlist';
|
|
6
|
+
export type TQoreBooleanCompatibleType = 'boolean' | '*boolean' | 'softbool' | '*bool' | '*bool' | 'bool' | '*softbool';
|
|
7
|
+
export type TQoreNullableType = 'NULL' | 'nothing';
|
|
8
|
+
export type TQoreAnyType = 'all' | 'any' | 'auto';
|
|
9
|
+
export type TQoreSimpleType = TQoreSimpleTypeNonList | TQoreListCompatibleType;
|
|
10
|
+
export type TQoreSimpleTypeNonList = TQoreStringCompatibleType | TQoreNumberCompatibleType | TQoreHashCompatibleType | TQoreBooleanCompatibleType | TQoreNullableType | TQoreAnyType;
|
|
11
|
+
export type TQoreType = TQoreSimpleType | TQoreTypeObject;
|
|
12
|
+
export type TQoreTypeMapping = {
|
|
13
|
+
string: string;
|
|
14
|
+
number: number;
|
|
15
|
+
hash: Record<string, any>;
|
|
16
|
+
list: unknown[];
|
|
17
|
+
boolean: boolean;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
export interface IQoreTypeObjectNonList<TypeValue = unknown> extends Omit<IQoreSharedObject<TypeValue>, 'type'> {
|
|
21
|
+
type: TQoreSimpleTypeNonList;
|
|
22
|
+
name?: string;
|
|
23
|
+
fields?: Record<string, TQoreAppActionOption>;
|
|
24
|
+
}
|
|
25
|
+
export type TQoreTypeObject<TypeValue = unknown> = IQoreTypeObjectNonList<TypeValue> | IQoreTypeObjectList<TypeValue>;
|
|
26
|
+
export interface IQoreTypeObjectList<TypeValue = unknown> extends Omit<IQoreSharedObject<TypeValue>, 'type'> {
|
|
27
|
+
type: TQoreListCompatibleType;
|
|
28
|
+
name?: string;
|
|
29
|
+
element_type?: TQoreType;
|
|
30
|
+
fields?: Record<string, TQoreAppActionOption>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types/qore/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEpE,MAAM,MAAM,yBAAyB,GACjC,QAAQ,GACR,SAAS,GACT,YAAY,GACZ,SAAS,GACT,QAAQ,GACR,MAAM,GACN,cAAc,GACd,iBAAiB,GACjB,WAAW,GACX,UAAU,GACV,aAAa,GACb,WAAW,GACX,SAAS,GACT,OAAO,GACP,eAAe,GACf,kBAAkB,GAClB,YAAY,GACZ,MAAM,GACN,OAAO,GACP,UAAU,GACV,WAAW,GACX,OAAO,GACP,QAAQ,GACR,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,MAAM,yBAAyB,GACjC,KAAK,GACL,SAAS,GACT,QAAQ,GACR,SAAS,GACT,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,SAAS,GACT,WAAW,GACX,YAAY,GACZ,UAA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AAM,EAAE,oBAAoB,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,eAAe,CAAC,SAAS,GAAG,OAAO,IAAI,sBAAsB,CAAC,SAAS,CAAC,GAAG,mBAAmB,CAAC,SAAS,CAAC,CAAC;AAEtH,MAAM,WAAW,mBAAmB,CAAC,SAAS,GAAG,OAAO,CAAE,SAAQ,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE1G,IAAI,EAAE,uBAAuB,CAAC;IAE9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/types/qore/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OpenAPIV2 } from 'openapi-types';
|
|
2
|
+
import { IQoreBaseAppAction } from './actions';
|
|
3
|
+
import { TCustomConnOptions } from './options';
|
|
4
|
+
export type THttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
5
|
+
export type TAllowedPaths<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = Record<string, Partial<Record<THttpMethod, IAllowedPathData<CustomConnOptions>>>>;
|
|
6
|
+
export interface IAllowedPathData<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> extends Partial<Omit<IQoreBaseAppAction, 'action_code' | 'app'>> {
|
|
7
|
+
processor?: (data: OpenAPIV2.OperationObject) => Partial<Omit<IQoreBaseAppAction<CustomConnOptions>, 'action_code' | 'app'>>;
|
|
8
|
+
independent_path_vars?: string[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/types/qore/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;AACtE,MAAM,MAAM,aAAa,CAAC,iBAAiB,SAAS,kBAAkB,GAAG,kBAAkB,IAAI,MAAM,CACnG,MAAM,EACN,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAClE,CAAC;AACF,MAAM,WAAW,gBAAgB,CAAC,iBAAiB,SAAS,kBAAkB,GAAG,kBAAkB,CACjG,SAAQ,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,aAAa,GAAG,KAAK,CAAC,CAAC;IAChE,SAAS,CAAC,EAAE,CACV,IAAI,EAAE,SAAS,CAAC,eAAe,KAC5B,OAAO,CAAC,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,EAAE,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC;IAGjF,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/types/qore/utils.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/dist/types/qore.d.ts
DELETED
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
import { IReqoreIconName } from '@qoretechnologies/reqore/dist/types/icons';
|
|
2
|
-
import { OpenAPIV2 } from 'openapi-types';
|
|
3
|
-
export interface IQoreAppShared {
|
|
4
|
-
display_name?: string;
|
|
5
|
-
short_desc?: string;
|
|
6
|
-
desc?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IQoreAppSharedNotLocalized {
|
|
9
|
-
display_name: string;
|
|
10
|
-
short_desc: string;
|
|
11
|
-
desc: string;
|
|
12
|
-
}
|
|
13
|
-
export type THttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
14
|
-
export type TWebhookHttpMethod = 'POST' | 'PUT' | 'PATCH' | 'GET';
|
|
15
|
-
export type TRestGetAllowedValuesMethod = TWebhookHttpMethod;
|
|
16
|
-
export type TCustomConnOptions = Record<string, IQoreConnectionOption>;
|
|
17
|
-
export type TCustomFields<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = Record<string, IQoreAppActionOption<TQoreType, unknown, CustomConnOptions>>;
|
|
18
|
-
export type TQoreOptionOnChangeEvents = 'refetch';
|
|
19
|
-
export type TAllowedPaths<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = Record<string, Partial<Record<THttpMethod, IAllowedPathData<CustomConnOptions>>>>;
|
|
20
|
-
export interface IAllowedPathData<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> extends Partial<Omit<IQoreBaseAppAction, 'action_code' | 'app'>> {
|
|
21
|
-
processor?: (data: OpenAPIV2.OperationObject) => Partial<Omit<IQoreBaseAppAction<CustomConnOptions>, 'action_code' | 'app'>>;
|
|
22
|
-
independent_path_vars?: string[];
|
|
23
|
-
}
|
|
24
|
-
type TQoreRestContentEncoding = 'gzip' | 'bzip2' | 'deflate' | 'identity';
|
|
25
|
-
type TQoreRestData = 'auto' | 'json' | 'yaml' | 'rawxml' | 'xml' | 'url' | 'text' | 'bin';
|
|
26
|
-
type TQoreRestOauth2GrantType = 'authorization_code' | 'client_credentials' | 'password' | 'none';
|
|
27
|
-
export interface IQoreRestConnectionConfig {
|
|
28
|
-
content_encoding?: TQoreRestContentEncoding;
|
|
29
|
-
data: TQoreRestData;
|
|
30
|
-
disable_automatic_pings?: boolean;
|
|
31
|
-
encode_chars?: string;
|
|
32
|
-
headers?: Record<string, string>;
|
|
33
|
-
oauth2_alt_url_subst?: Record<string, any>;
|
|
34
|
-
oauth2_auth_args?: Record<string, any>;
|
|
35
|
-
oauth2_auth_url: string;
|
|
36
|
-
oauth2_auto_refresh?: boolean;
|
|
37
|
-
oauth2_client_id?: string;
|
|
38
|
-
oauth2_client_secret?: string | 'auto';
|
|
39
|
-
oauth2_grant_type: TQoreRestOauth2GrantType;
|
|
40
|
-
oauth2_redirect_url?: string;
|
|
41
|
-
oauth2_refresh_token?: string;
|
|
42
|
-
oauth2_scopes?: string[];
|
|
43
|
-
oauth2_token_args?: Record<string, any>;
|
|
44
|
-
oauth2_token_auth_secret_only?: boolean;
|
|
45
|
-
oauth2_token_url: string;
|
|
46
|
-
oauth2_token_use_basic_auth?: boolean;
|
|
47
|
-
password?: string;
|
|
48
|
-
ping_method?: string;
|
|
49
|
-
ping_path?: string;
|
|
50
|
-
ping_headers?: Record<string, string>;
|
|
51
|
-
ping_body?: any;
|
|
52
|
-
proxy?: string;
|
|
53
|
-
ssl_cert_data?: string;
|
|
54
|
-
ssl_key_data?: string;
|
|
55
|
-
ssl_verify_cert?: boolean;
|
|
56
|
-
token?: string;
|
|
57
|
-
token_type?: string;
|
|
58
|
-
url: string;
|
|
59
|
-
username?: string;
|
|
60
|
-
swagger_base_path?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface IQoreConnectionOption<TypeName extends TQoreSimpleType = TQoreSimpleType, TypeValue = unknown> extends Omit<IQoreAppActionOption<TypeName, TypeValue>, 'get_allowed_values' | 'get_dependent_options' | 'rest_get_allowed_values' | 'required'> {
|
|
63
|
-
freeform?: boolean;
|
|
64
|
-
sensitive?: boolean;
|
|
65
|
-
subset_env_vars?: boolean;
|
|
66
|
-
}
|
|
67
|
-
export interface IQoreConnectionOptions {
|
|
68
|
-
[key: string]: GetConnectionOptionDefinitionFromQoreType<TQoreType>;
|
|
69
|
-
}
|
|
70
|
-
export interface IQoreRestConnectionModifiers<ModifierOptions extends Record<string, IQoreConnectionOption> = Record<string, IQoreConnectionOption>> {
|
|
71
|
-
options?: ModifierOptions;
|
|
72
|
-
required_options?: string;
|
|
73
|
-
url_template_options?: Array<string>;
|
|
74
|
-
set_options_post_auth?: (context: Omit<TQoreAppActionFunctionContext<ModifierOptions>, 'opts'>) => Promise<TQoreMappedOptions<ModifierOptions>> | TQoreMappedOptions<ModifierOptions>;
|
|
75
|
-
set_options_post_auth_code?: (context: Omit<TQoreAppActionFunctionContext<ModifierOptions>, 'opts'>) => TQoreMappedOptions<ModifierOptions>;
|
|
76
|
-
/** allows the REST URL to be changed when an option value is changed
|
|
77
|
-
*/
|
|
78
|
-
connection_update_option?: {
|
|
79
|
-
option: string;
|
|
80
|
-
code: (context: TQoreAppActionFunctionContext<ModifierOptions>) => string | void;
|
|
81
|
-
};
|
|
82
|
-
/** maps connection options (normally required options) that map to Swagger path options; the key is the request
|
|
83
|
-
option name, the value is the action option name; the value of the connection option will be used as the value
|
|
84
|
-
of the given action option in each call where the option is present
|
|
85
|
-
*/
|
|
86
|
-
conn_option_map?: Record<keyof ModifierOptions, string>;
|
|
87
|
-
}
|
|
88
|
-
export type TFirstAppCharacter = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z' | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
89
|
-
export type TStringWithFirstUpperCaseCharacter = `${TFirstAppCharacter}${string}`;
|
|
90
|
-
export interface IQoreApp<RestModifierOptions extends Record<string, IQoreConnectionOption> = Record<string, IQoreConnectionOption>> extends IQoreAppShared {
|
|
91
|
-
name: TStringWithFirstUpperCaseCharacter;
|
|
92
|
-
logo: string;
|
|
93
|
-
logo_file_name: string;
|
|
94
|
-
logo_mime_type: string;
|
|
95
|
-
rest?: IQoreRestConnectionConfig;
|
|
96
|
-
rest_modifiers?: IQoreRestConnectionModifiers<RestModifierOptions>;
|
|
97
|
-
swagger?: string;
|
|
98
|
-
swagger_options?: object;
|
|
99
|
-
swagger_paths?: string[];
|
|
100
|
-
swagger_type_overrides?: object;
|
|
101
|
-
}
|
|
102
|
-
export interface IQoreExistingApp {
|
|
103
|
-
name: TStringWithFirstUpperCaseCharacter;
|
|
104
|
-
module: string;
|
|
105
|
-
root_provider?: string;
|
|
106
|
-
}
|
|
107
|
-
export interface IQoreExistingAppWithActions extends IQoreExistingApp {
|
|
108
|
-
actions: TQoreAppAction[];
|
|
109
|
-
}
|
|
110
|
-
export interface TQoreAppWithActions<Actions extends TQoreAppAction<TQoreOptions>[] = TQoreAppAction<TQoreOptions>[], RestModifierOptions extends Record<string, IQoreConnectionOption> = Record<string, IQoreConnectionOption>> extends IQoreApp<RestModifierOptions> {
|
|
111
|
-
actions: Actions;
|
|
112
|
-
}
|
|
113
|
-
export type TQoreApps = Record<string, TQoreAppWithActions>;
|
|
114
|
-
export type TQoreExistingApps = Record<string, IQoreExistingAppWithActions>;
|
|
115
|
-
export declare enum EQoreAppActionCode {
|
|
116
|
-
EVENT = 1,
|
|
117
|
-
ACTION = 2
|
|
118
|
-
}
|
|
119
|
-
export declare const QoreAppActionCodeToLocale: {
|
|
120
|
-
[key in EQoreAppActionCode]: string;
|
|
121
|
-
};
|
|
122
|
-
export interface IQoreBaseAppAction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> extends IQoreAppShared {
|
|
123
|
-
app: string;
|
|
124
|
-
action: string;
|
|
125
|
-
action_code: EQoreAppActionCode;
|
|
126
|
-
override_options?: Record<string, TQoreAppActionOverrideOption<CustomConnOptions>>;
|
|
127
|
-
}
|
|
128
|
-
export type TQoreAppActionFunctionContext<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, Options extends TQoreOptions = TQoreOptions> = {
|
|
129
|
-
conn_name?: string;
|
|
130
|
-
conn_opts?: Partial<IQoreRestConnectionConfig> & TQoreMappedOptions<CustomConnOptions>;
|
|
131
|
-
opts?: TQoreMappedOptions<Options>;
|
|
132
|
-
};
|
|
133
|
-
export type TQoreAppActionFunction<Options extends TQoreOptions = TQoreOptions> = (obj?: TQoreMappedOptions<Options>, options?: never, context?: TQoreAppActionFunctionContext<TCustomConnOptions, Options>) => any;
|
|
134
|
-
export type TQoreGetAllowedValuesFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, TypeValue = unknown> = (context?: TQoreAppActionFunctionContext<CustomConnOptions>) => IQoreAllowedValue<TypeValue>[] | Promise<IQoreAllowedValue<TypeValue>[]>;
|
|
135
|
-
export type TQoreGetDefaultValueFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, TypeValue = unknown> = (context?: TQoreAppActionFunctionContext<CustomConnOptions>) => TypeValue | Promise<TypeValue>;
|
|
136
|
-
export type TQoreStringCompatibleType = 'string' | '*string' | 'softstring' | '*string' | 'binary' | 'date' | 'base64binary' | 'base64urlbinary' | 'hexbinary' | 'softdate' | '*softstring' | '*softdate' | '*binary' | '*date' | '*base64binary' | '*base64urlbinary' | '*hexbinary' | 'byte' | '*byte' | 'softbyte' | '*softbyte' | 'ubyte' | '*ubyte' | 'softubyte' | '*softubyte';
|
|
137
|
-
export type TQoreNumberCompatibleType = 'int' | '*number' | '*float' | '*double' | '*integer' | 'float' | 'number' | 'integer' | 'double' | 'softint' | 'softfloat' | 'softnumber' | '*softint' | '*softfloat' | '*softnumber' | '*int' | 'unixts' | '*unixts' | 'unixtsms' | '*unixtsms';
|
|
138
|
-
export type TQoreHashCompatibleType = 'hash' | '*hash' | '*data' | 'data';
|
|
139
|
-
export type TQoreListCompatibleType = 'list' | '*list' | 'softlist' | '*softlist';
|
|
140
|
-
export type TQoreBooleanCompatibleType = 'boolean' | '*boolean' | 'softbool' | '*bool' | '*bool' | 'bool' | '*softbool';
|
|
141
|
-
export type TQoreNullableType = 'NULL' | 'nothing';
|
|
142
|
-
export type TQoreAnyType = 'all' | 'any' | 'auto';
|
|
143
|
-
export type TQoreSimpleType = TQoreSimpleTypeNonList | TQoreListCompatibleType;
|
|
144
|
-
export type TQoreSimpleTypeNonList = TQoreStringCompatibleType | TQoreNumberCompatibleType | TQoreHashCompatibleType | TQoreBooleanCompatibleType | TQoreNullableType | TQoreAnyType;
|
|
145
|
-
export type TQoreType = TQoreSimpleType | TQoreTypeObject;
|
|
146
|
-
export type TQoreTypeMapping = {
|
|
147
|
-
string: string;
|
|
148
|
-
number: number;
|
|
149
|
-
hash: Record<string, any>;
|
|
150
|
-
list: unknown[];
|
|
151
|
-
boolean: boolean;
|
|
152
|
-
[key: string]: any;
|
|
153
|
-
};
|
|
154
|
-
export type TQoreOptionType<Option> = Option extends {
|
|
155
|
-
type: keyof TQoreTypeMapping;
|
|
156
|
-
} ? TQoreTypeMapping[Option['type']] : never;
|
|
157
|
-
export type TQoreOptionsType<Options extends TQoreOptions = TQoreOptions> = {
|
|
158
|
-
[OptionKey in keyof Options]: TQoreOptionType<Options[OptionKey]>;
|
|
159
|
-
};
|
|
160
|
-
export type TQoreMappedOptions<T extends TQoreOptions> = TQoreOptionsType<T>;
|
|
161
|
-
export type GetConnectionOptionDefinitionFromQoreType<T extends TQoreType> = T extends TQoreStringCompatibleType ? IQoreConnectionOption<T, string> : T extends TQoreNumberCompatibleType ? IQoreConnectionOption<T, number> : T extends TQoreHashCompatibleType ? IQoreConnectionOption<T, Record<string, any>> : T extends TQoreBooleanCompatibleType ? IQoreConnectionOption<T, boolean> : T extends TQoreListCompatibleType ? IQoreConnectionOption<T, unknown[]> : T extends TQoreNullableType ? IQoreConnectionOption<T, null> : T extends object ? IQoreConnectionOption : never;
|
|
162
|
-
export type GetOptionDefinitionFromQoreType<T extends TQoreType> = T extends TQoreStringCompatibleType ? IQoreAppActionOption<T, string> : T extends TQoreNumberCompatibleType ? IQoreAppActionOption<T, number> : T extends TQoreHashCompatibleType ? IQoreAppActionOption<T, Record<string, any>> : T extends TQoreBooleanCompatibleType ? IQoreAppActionOption<T, boolean> : T extends TQoreListCompatibleType ? IQoreAppActionOption<T, unknown[]> : T extends TQoreNullableType ? IQoreAppActionOption<T, null> : T extends object ? IQoreAppActionOption : never;
|
|
163
|
-
export type GetResponseDefinitionFromQoreType<T extends TQoreType> = T extends TQoreStringCompatibleType ? IQoreAppActionOption<T, string> : T extends TQoreNumberCompatibleType ? IQoreAppActionOption<T, number> : T extends TQoreHashCompatibleType ? IQoreAppActionOption<T, Record<string, any>> : T extends TQoreBooleanCompatibleType ? IQoreAppActionOption<T, boolean> : T extends TQoreListCompatibleType ? IQoreAppActionOption<T, unknown[]> : T extends TQoreNullableType ? IQoreAppActionOption<T, null> : T extends object ? IQoreAppActionOption : never;
|
|
164
|
-
export interface IQoreAllowedValue<TypeValue = unknown> extends IQoreAppShared {
|
|
165
|
-
value: TypeValue;
|
|
166
|
-
icon?: IReqoreIconName;
|
|
167
|
-
image?: string;
|
|
168
|
-
}
|
|
169
|
-
export type TQoreGetDependentOptionsFunction = (context?: TQoreAppActionFunctionContext) => Record<string, IQoreAppActionOption> | Promise<Record<string, IQoreAppActionOption>>;
|
|
170
|
-
export interface IQoreRestGetAllowedValues {
|
|
171
|
-
method: TWebhookHttpMethod;
|
|
172
|
-
path: string;
|
|
173
|
-
body?: Record<string, any>;
|
|
174
|
-
headers?: Record<string, any>;
|
|
175
|
-
values: string;
|
|
176
|
-
display_names?: string;
|
|
177
|
-
/** Descriptions are long, markdown-formatted string descriptions
|
|
178
|
-
*/
|
|
179
|
-
descriptions?: string;
|
|
180
|
-
/** Short descs are short, plain-text string descriptions
|
|
181
|
-
*/
|
|
182
|
-
short_descs?: string;
|
|
183
|
-
}
|
|
184
|
-
export interface IQoreSharedObject<TypeValue = unknown> extends IQoreAppShared {
|
|
185
|
-
required?: boolean;
|
|
186
|
-
preselected?: boolean;
|
|
187
|
-
default_value?: TypeValue;
|
|
188
|
-
}
|
|
189
|
-
export interface IQoreTypeObjectNonList<TypeValue = unknown> extends Omit<IQoreSharedObject<TypeValue>, 'type'> {
|
|
190
|
-
type: TQoreSimpleTypeNonList;
|
|
191
|
-
name?: string;
|
|
192
|
-
fields?: Record<string, IQoreAppActionOption>;
|
|
193
|
-
}
|
|
194
|
-
export type TQoreTypeObject<TypeValue = unknown> = IQoreTypeObjectNonList<TypeValue> | IQoreTypeObjectList<TypeValue>;
|
|
195
|
-
export interface IQoreTypeObjectList<TypeValue = unknown> extends Omit<IQoreSharedObject<TypeValue>, 'type'> {
|
|
196
|
-
type: TQoreListCompatibleType;
|
|
197
|
-
name?: string;
|
|
198
|
-
element_type?: TQoreType;
|
|
199
|
-
fields?: Record<string, IQoreAppActionOption>;
|
|
200
|
-
}
|
|
201
|
-
export interface IQoreAppActionOption<TypeName extends TQoreType = TQoreType, TypeValue = unknown, CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> extends IQoreSharedObject<TypeValue> {
|
|
202
|
-
type: TypeName;
|
|
203
|
-
example_value?: TypeValue;
|
|
204
|
-
allowed_values?: IQoreAllowedValue<TypeValue>[];
|
|
205
|
-
/** Mutually-exclusive with 'rest_get_allowed_values'
|
|
206
|
-
*/
|
|
207
|
-
get_allowed_values?: TQoreGetAllowedValuesFunction<CustomConnOptions, TypeValue>;
|
|
208
|
-
get_dependent_options?: TQoreGetDependentOptionsFunction;
|
|
209
|
-
/** Mutually-exclusive with 'get_allowed_values'
|
|
210
|
-
*/
|
|
211
|
-
rest_get_allowed_values?: IQoreRestGetAllowedValues;
|
|
212
|
-
allowed_values_creatable?: boolean;
|
|
213
|
-
depends_on?: string[] | string[][];
|
|
214
|
-
get_default_value?: TQoreGetDefaultValueFunction<CustomConnOptions, TypeValue>;
|
|
215
|
-
attr?: Record<string, any>;
|
|
216
|
-
sensitive?: boolean;
|
|
217
|
-
required_groups?: string[];
|
|
218
|
-
on_change?: TQoreOptionOnChangeEvents[];
|
|
219
|
-
}
|
|
220
|
-
export type TQoreAppActionOverrideOption<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, TypeName extends TQoreType = TQoreType, TypeValue = unknown> = Partial<IQoreAppActionOption<TypeName, TypeValue, CustomConnOptions>>;
|
|
221
|
-
export declare enum EQoreAppActionWebhookAuthType {
|
|
222
|
-
AUTH_NONE = 0,
|
|
223
|
-
AUTH_REQUIRE_AUTH = 1
|
|
224
|
-
}
|
|
225
|
-
export interface IQoreAppActionWithEventOrWebhook<Options extends TQoreOptions = TQoreOptions> extends IQoreBaseAppAction {
|
|
226
|
-
action_code: EQoreAppActionCode.EVENT;
|
|
227
|
-
event_info: TQoreAppActionWithEventOrWebhookEventInfo;
|
|
228
|
-
options?: Options;
|
|
229
|
-
get_example_event_data?: (context: TQoreAppActionFunctionContext<TCustomConnOptions, Options>) => Record<string, any> | Promise<Record<string, any>>;
|
|
230
|
-
}
|
|
231
|
-
export type TQoreAppActionWithEventOrWebhookEventInfo = {
|
|
232
|
-
id?: string;
|
|
233
|
-
desc: string;
|
|
234
|
-
type: TQoreTypeObject;
|
|
235
|
-
};
|
|
236
|
-
export interface IQoreAppActionWithWebhookBase<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions, Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithEventOrWebhook<Options> {
|
|
237
|
-
webhook_method: TWebhookHttpMethod;
|
|
238
|
-
webhook_auth?: EQoreAppActionWebhookAuthType;
|
|
239
|
-
webhook_register: TWebhookRegisterFunction<CustomConnOptions>;
|
|
240
|
-
webhook_deregister: TWebhookDeregisterFunction<CustomConnOptions>;
|
|
241
|
-
webhook_event_loc?: string;
|
|
242
|
-
webhook_echo_header?: string;
|
|
243
|
-
}
|
|
244
|
-
export type TWebhookRegisterFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = (context: TQoreAppActionFunctionContext<CustomConnOptions>, url: string) => Promise<Record<string, any> | void>;
|
|
245
|
-
export type TWebhookDeregisterFunction<CustomConnOptions extends TCustomConnOptions = TCustomConnOptions> = (context: TQoreAppActionFunctionContext<CustomConnOptions>, url: string, regInfo: Record<string, any>) => Promise<void>;
|
|
246
|
-
export interface IQoreAppActionWithWebhookWithoutPerms<Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithWebhookBase<TCustomConnOptions, Options> {
|
|
247
|
-
webhook_auth?: EQoreAppActionWebhookAuthType.AUTH_NONE;
|
|
248
|
-
webhook_perms?: never;
|
|
249
|
-
}
|
|
250
|
-
export interface IQoreAppActionWithWebhookWithPerms<Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithWebhookBase<TCustomConnOptions, Options> {
|
|
251
|
-
webhook_auth?: EQoreAppActionWebhookAuthType.AUTH_REQUIRE_AUTH;
|
|
252
|
-
webhook_perms?: string[];
|
|
253
|
-
}
|
|
254
|
-
export type TQoreAppActionWithWebhook<Options extends TQoreOptions = TQoreOptions> = IQoreAppActionWithWebhookWithoutPerms<Options> | IQoreAppActionWithWebhookWithPerms<Options>;
|
|
255
|
-
export interface IQoreAppActionWithEvent<Options extends TQoreOptions = TQoreOptions> extends IQoreAppActionWithEventOrWebhook<Options> {
|
|
256
|
-
event_function: (context: TQoreAppActionFunctionContext<TCustomConnOptions, Options>, update: (event_data: Record<string, any>) => void, should_stop: () => boolean) => void;
|
|
257
|
-
}
|
|
258
|
-
export type TQoreOptions = Record<string, IQoreAppActionOption>;
|
|
259
|
-
export type TQoreResponseType = string | TQoreTypeObject;
|
|
260
|
-
export interface IQoreAppActionWithFunction<Options extends TQoreOptions = TQoreOptions, _Response = TQoreResponseType> extends IQoreBaseAppAction {
|
|
261
|
-
action_code: EQoreAppActionCode.ACTION;
|
|
262
|
-
api_function?: TQoreAppActionFunction<Options>;
|
|
263
|
-
options?: Options;
|
|
264
|
-
response_type?: TQoreResponseType;
|
|
265
|
-
io_timeout_secs?: number;
|
|
266
|
-
}
|
|
267
|
-
export interface IQoreAppActionWithSwaggerPath extends IQoreBaseAppAction {
|
|
268
|
-
action_code: EQoreAppActionCode.ACTION;
|
|
269
|
-
swagger_path: string;
|
|
270
|
-
independent_path_vars?: string[];
|
|
271
|
-
}
|
|
272
|
-
export interface IQorePartialAppActionWithSwaggerPath extends Omit<IQoreBaseAppAction, 'app'> {
|
|
273
|
-
swagger_path: string;
|
|
274
|
-
action_code: EQoreAppActionCode.ACTION;
|
|
275
|
-
independent_path_vars?: string[];
|
|
276
|
-
}
|
|
277
|
-
export type TQoreAppNonEventAction<Options extends TQoreOptions = TQoreOptions, Response = TQoreResponseType> = IQoreAppActionWithFunction<Options, Response> | IQoreAppActionWithSwaggerPath;
|
|
278
|
-
export type TQoreAppEventAction<Options extends TQoreOptions = TQoreOptions> = IQoreAppActionWithEvent<Options> | TQoreAppActionWithWebhook<Options>;
|
|
279
|
-
export type TQoreAppAction<Options extends TQoreOptions = TQoreOptions, Response = TQoreResponseType> = TQoreAppNonEventAction<Options, Response> | TQoreAppEventAction<Options>;
|
|
280
|
-
export type TQorePartialNonEventAction<Options extends TQoreOptions = Record<string, IQoreAppActionOption>, Response = Record<string, TQoreTypeObject>> = Omit<IQoreAppActionWithFunction<Options, Response>, 'app'> | IQorePartialAppActionWithSwaggerPath;
|
|
281
|
-
export type TQorePartialEventAction<Options extends TQoreOptions = TQoreOptions> = Omit<TQoreAppActionWithWebhook<Options>, 'app'> | Omit<IQoreAppActionWithEvent<Options>, 'app'>;
|
|
282
|
-
export type TQorePartialAction<Options extends TQoreOptions = Record<string, IQoreAppActionOption>, Response = Record<string, TQoreTypeObject>> = TQorePartialNonEventAction<Options, Response> | TQorePartialEventAction<Options>;
|
|
283
|
-
export {};
|
|
284
|
-
//# sourceMappingURL=qore.d.ts.map
|
package/dist/types/qore.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"qore.d.ts","sourceRoot":"","sources":["../../src/types/qore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACp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,CAAC,GACzC,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAEjC,MAAM,MAAM,0BAA0B,CACpC,OAAO,SAAS,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACnE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IACxC,IAAI,CAAC,0BAA0B,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,oCAAoC,CAAC;AAEtG,MAAM,MAAM,uBAAuB,CAAC,OAAO,SAAS,YAAY,GAAG,YAAY,IAC3E,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,GAC/C,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC;AAElD,MAAM,MAAM,kBAAkB,CAC5B,OAAO,SAAS,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EACnE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,IACxC,0BAA0B,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC"}
|
package/dist/types/qore.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EQoreAppActionWebhookAuthType = exports.QoreAppActionCodeToLocale = exports.EQoreAppActionCode = void 0;
|
|
4
|
-
var EQoreAppActionCode;
|
|
5
|
-
(function (EQoreAppActionCode) {
|
|
6
|
-
EQoreAppActionCode[EQoreAppActionCode["EVENT"] = 1] = "EVENT";
|
|
7
|
-
EQoreAppActionCode[EQoreAppActionCode["ACTION"] = 2] = "ACTION";
|
|
8
|
-
})(EQoreAppActionCode = exports.EQoreAppActionCode || (exports.EQoreAppActionCode = {}));
|
|
9
|
-
exports.QoreAppActionCodeToLocale = {
|
|
10
|
-
[EQoreAppActionCode.EVENT]: 'triggers',
|
|
11
|
-
[EQoreAppActionCode.ACTION]: 'actions',
|
|
12
|
-
};
|
|
13
|
-
var EQoreAppActionWebhookAuthType;
|
|
14
|
-
(function (EQoreAppActionWebhookAuthType) {
|
|
15
|
-
EQoreAppActionWebhookAuthType[EQoreAppActionWebhookAuthType["AUTH_NONE"] = 0] = "AUTH_NONE";
|
|
16
|
-
EQoreAppActionWebhookAuthType[EQoreAppActionWebhookAuthType["AUTH_REQUIRE_AUTH"] = 1] = "AUTH_REQUIRE_AUTH";
|
|
17
|
-
})(EQoreAppActionWebhookAuthType = exports.EQoreAppActionWebhookAuthType || (exports.EQoreAppActionWebhookAuthType = {}));
|
|
18
|
-
//# sourceMappingURL=qore.js.map
|
package/dist/types/qore.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"qore.js","sourceRoot":"","sources":["../../src/types/qore.ts"],"names":[],"mappings":";;;AAkRA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6DAAS,CAAA;IACT,+DAAU,CAAA;AACZ,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAEY,QAAA,yBAAyB,GAElC;IACF,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,UAAU;IACtC,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,SAAS;CACvC,CAAC;AA6RF,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACvC,2FAAa,CAAA;IACb,2GAAqB,CAAA;AACvB,CAAC,EAHW,6BAA6B,GAA7B,qCAA6B,KAA7B,qCAA6B,QAGxC"}
|