integreat 1.5.9 → 1.5.11
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/Instance.d.ts +0 -1
- package/dist/handlers/set.d.ts +14 -14
- package/dist/service/utils/authAction.d.ts +9 -9
- package/dist/utils/action.d.ts +23 -23
- package/dist/utils/deep.d.ts +1 -10
- package/dist/utils/is.d.ts +1 -1
- package/package.json +10 -10
package/dist/Instance.d.ts
CHANGED
package/dist/handlers/set.d.ts
CHANGED
|
@@ -8,22 +8,22 @@ export declare const setIdAndTypeOnAction: (action: Action, id?: string | string
|
|
|
8
8
|
id: string | string[] | undefined;
|
|
9
9
|
type: string | string[] | undefined;
|
|
10
10
|
data?: unknown;
|
|
11
|
-
sourceService?: string
|
|
12
|
-
targetService?: string
|
|
13
|
-
service?: string
|
|
14
|
-
endpoint?: string
|
|
15
|
-
uri?: string
|
|
16
|
-
method?: string
|
|
17
|
-
headers?: import("../types.js").Headers
|
|
18
|
-
page?: number
|
|
19
|
-
pageOffset?: number
|
|
20
|
-
pageSize?: number
|
|
21
|
-
pageAfter?: string
|
|
22
|
-
pageBefore?: string
|
|
23
|
-
pageId?: string
|
|
11
|
+
sourceService?: string;
|
|
12
|
+
targetService?: string;
|
|
13
|
+
service?: string;
|
|
14
|
+
endpoint?: string;
|
|
15
|
+
uri?: string;
|
|
16
|
+
method?: string;
|
|
17
|
+
headers?: import("../types.js").Headers;
|
|
18
|
+
page?: number;
|
|
19
|
+
pageOffset?: number;
|
|
20
|
+
pageSize?: number;
|
|
21
|
+
pageAfter?: string;
|
|
22
|
+
pageBefore?: string;
|
|
23
|
+
pageId?: string;
|
|
24
24
|
};
|
|
25
25
|
type: string;
|
|
26
26
|
response?: Response<unknown> | undefined;
|
|
27
|
-
meta?: import("../types.js").Meta
|
|
27
|
+
meta?: import("../types.js").Meta;
|
|
28
28
|
};
|
|
29
29
|
export default function set(action: Action, { getService }: ActionHandlerResources): Promise<Response>;
|
|
@@ -10,15 +10,15 @@ export declare const isAuthorizedAction: (action: Action & {
|
|
|
10
10
|
export declare const setAuthorizedMark: (action: Action, isAuthorized?: boolean) => {
|
|
11
11
|
meta: {
|
|
12
12
|
[authorizedByIntegreat]: boolean;
|
|
13
|
-
id?: string
|
|
14
|
-
cid?: string
|
|
15
|
-
ident?: Ident
|
|
16
|
-
dispatchedAt?: number
|
|
17
|
-
queue?:
|
|
18
|
-
queuedAt?: number
|
|
19
|
-
cache?: boolean
|
|
20
|
-
auth?: Record<string, unknown> | null
|
|
21
|
-
options?: import("../types.js").TransporterOptions
|
|
13
|
+
id?: string;
|
|
14
|
+
cid?: string;
|
|
15
|
+
ident?: Ident;
|
|
16
|
+
dispatchedAt?: number;
|
|
17
|
+
queue?: boolean | number;
|
|
18
|
+
queuedAt?: number;
|
|
19
|
+
cache?: boolean;
|
|
20
|
+
auth?: Record<string, unknown> | null;
|
|
21
|
+
options?: import("../types.js").TransporterOptions;
|
|
22
22
|
};
|
|
23
23
|
type: string;
|
|
24
24
|
payload: import("../../types.js").Payload<unknown>;
|
package/dist/utils/action.d.ts
CHANGED
|
@@ -4,41 +4,41 @@ export declare function createAction(type?: string, payload?: Payload, meta?: Me
|
|
|
4
4
|
export declare function setDataOnActionPayload(action: Action, data?: unknown): {
|
|
5
5
|
payload: {
|
|
6
6
|
data: unknown;
|
|
7
|
-
type?: string | string[]
|
|
8
|
-
id?: string | string[]
|
|
9
|
-
sourceService?: string
|
|
10
|
-
targetService?: string
|
|
11
|
-
service?: string
|
|
12
|
-
endpoint?: string
|
|
13
|
-
uri?: string
|
|
14
|
-
method?: string
|
|
15
|
-
headers?: import("../types.js").Headers
|
|
16
|
-
page?: number
|
|
17
|
-
pageOffset?: number
|
|
18
|
-
pageSize?: number
|
|
19
|
-
pageAfter?: string
|
|
20
|
-
pageBefore?: string
|
|
21
|
-
pageId?: string
|
|
7
|
+
type?: string | string[];
|
|
8
|
+
id?: string | string[];
|
|
9
|
+
sourceService?: string;
|
|
10
|
+
targetService?: string;
|
|
11
|
+
service?: string;
|
|
12
|
+
endpoint?: string;
|
|
13
|
+
uri?: string;
|
|
14
|
+
method?: string;
|
|
15
|
+
headers?: import("../types.js").Headers;
|
|
16
|
+
page?: number;
|
|
17
|
+
pageOffset?: number;
|
|
18
|
+
pageSize?: number;
|
|
19
|
+
pageAfter?: string;
|
|
20
|
+
pageBefore?: string;
|
|
21
|
+
pageId?: string;
|
|
22
22
|
};
|
|
23
23
|
type: string;
|
|
24
24
|
response?: Response<unknown> | undefined;
|
|
25
|
-
meta?: Meta
|
|
25
|
+
meta?: Meta;
|
|
26
26
|
};
|
|
27
27
|
export declare function setResponseOnAction(action: Action, response?: Response): {
|
|
28
28
|
response: Response<unknown>;
|
|
29
29
|
type: string;
|
|
30
30
|
payload: Payload<unknown>;
|
|
31
|
-
meta?: Meta
|
|
31
|
+
meta?: Meta;
|
|
32
32
|
};
|
|
33
33
|
export declare function setMetaOnAction(action: Action, { queue, queuedAt, id, ...meta }: Meta): {
|
|
34
34
|
meta: {
|
|
35
35
|
queue?: boolean | undefined;
|
|
36
|
-
cid?: string
|
|
37
|
-
ident?: import("../types.js").Ident
|
|
38
|
-
dispatchedAt?: number
|
|
39
|
-
cache?: boolean
|
|
40
|
-
auth?: Record<string, unknown> | null
|
|
41
|
-
options?: import("../service/types.js").TransporterOptions
|
|
36
|
+
cid?: string;
|
|
37
|
+
ident?: import("../types.js").Ident;
|
|
38
|
+
dispatchedAt?: number;
|
|
39
|
+
cache?: boolean;
|
|
40
|
+
auth?: Record<string, unknown> | null;
|
|
41
|
+
options?: import("../service/types.js").TransporterOptions;
|
|
42
42
|
};
|
|
43
43
|
type: string;
|
|
44
44
|
payload: Payload<unknown>;
|
package/dist/utils/deep.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
export declare const deepClone: <T>(input: T) => T;
|
|
2
|
-
export declare const deepMerge: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts,
|
|
3
|
-
DeepMergeRecordsURI: "DeepMergeRecordsDefaultURI";
|
|
4
|
-
DeepMergeArraysURI: "DeepMergeArraysDefaultURI";
|
|
5
|
-
DeepMergeSetsURI: "DeepMergeSetsDefaultURI";
|
|
6
|
-
DeepMergeMapsURI: "DeepMergeMapsDefaultURI";
|
|
7
|
-
DeepMergeOthersURI: "DeepMergeLeafURI";
|
|
8
|
-
}>, Readonly<{
|
|
9
|
-
key: PropertyKey;
|
|
10
|
-
parents: readonly Readonly<Record<PropertyKey, unknown>>[];
|
|
11
|
-
}>>;
|
|
2
|
+
export declare const deepMerge: <Ts extends readonly unknown[]>(...objects: Ts) => import("deepmerge-ts").DeepMergeHKT<Ts, import("deepmerge-ts").GetDeepMergeFunctionsURIs<{}>, import("deepmerge-ts").DeepMergeBuiltInMetaData>;
|
|
12
3
|
export declare function deepMergeItems(a: unknown, b: unknown): unknown;
|
package/dist/utils/is.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const isShape: (value: unknown) => value is ShapeDef;
|
|
|
9
9
|
export declare const isFieldDefinition: (value: unknown) => value is FieldDefinition;
|
|
10
10
|
export declare const isNullOrUndefined: (value: unknown) => value is null | undefined;
|
|
11
11
|
export declare const isNotNullOrUndefined: <T>(value: T) => value is NonNullable<T>;
|
|
12
|
-
export declare const isAction: (action: unknown) => action is Action
|
|
12
|
+
export declare const isAction: (action: unknown) => action is Action;
|
|
13
13
|
export declare const isOkResponse: (response?: Response) => boolean;
|
|
14
14
|
export declare const isErrorResponse: (response?: Response) => boolean;
|
|
15
15
|
export declare const isTruthy: (value: unknown) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "integreat",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.11",
|
|
4
4
|
"description": "Node.js integration layer",
|
|
5
5
|
"author": "Kjell-Morten Bratsberg Thorsen <kjellmorten@integreat.io> (https://integreat.io/)",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,30 +39,30 @@
|
|
|
39
39
|
"node": ">= 18"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"ajv": "^8.
|
|
42
|
+
"ajv": "^8.16.0",
|
|
43
43
|
"cron-parser": "^4.9.0",
|
|
44
|
-
"debug": "^4.3.
|
|
45
|
-
"deepmerge-ts": "^
|
|
44
|
+
"debug": "^4.3.5",
|
|
45
|
+
"deepmerge-ts": "^7.1.4",
|
|
46
46
|
"map-any": "^1.0.0",
|
|
47
|
-
"map-transform": "^1.5.
|
|
47
|
+
"map-transform": "^1.5.1",
|
|
48
48
|
"ms": "^2.1.3",
|
|
49
|
-
"nanoid": "^5.0.
|
|
49
|
+
"nanoid": "^5.0.7",
|
|
50
50
|
"p-limit": "^5.0.0",
|
|
51
51
|
"p-pipe": "^4.0.0",
|
|
52
52
|
"p-progress": "^1.0.0",
|
|
53
|
-
"rfdc": "^1.
|
|
53
|
+
"rfdc": "^1.4.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@integreat/ts-dev-setup": "^6.0.
|
|
56
|
+
"@integreat/ts-dev-setup": "^6.0.2",
|
|
57
57
|
"@types/debug": "^4.1.12",
|
|
58
58
|
"@types/luxon": "^3.4.2",
|
|
59
|
-
"@types/node": "^
|
|
59
|
+
"@types/node": "^22.13.1",
|
|
60
60
|
"@types/sinon": "^17.0.3",
|
|
61
61
|
"integreat-adapter-json": "^1.0.1",
|
|
62
62
|
"integreat-adapter-uri": "^1.0.0",
|
|
63
63
|
"integreat-transformers": "^1.0.5",
|
|
64
64
|
"integreat-transporter-http": "^1.3.0",
|
|
65
65
|
"nock": "^13.5.4",
|
|
66
|
-
"sinon": "^17.0.
|
|
66
|
+
"sinon": "^17.0.2"
|
|
67
67
|
}
|
|
68
68
|
}
|