@jaypie/testkit 1.2.27 → 1.2.31

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.
@@ -138,12 +138,14 @@ export declare const HTTP: {
138
138
  readonly SESSION: "X-Project-Session";
139
139
  readonly VERSION: "X-Project-Version";
140
140
  };
141
+ readonly SERVICE_KEY: "X-Service-Key";
141
142
  readonly SIGNATURE: {
142
143
  readonly ED25519: "X-Signature-Ed25519";
143
144
  readonly TIMESTAMP: "X-Signature-Timestamp";
144
145
  };
145
146
  readonly USER_AGENT: "User-Agent";
146
147
  readonly VIA: "Via";
148
+ readonly WEBHOOK_TOKEN: "X-Webhook-Token";
147
149
  };
148
150
  readonly METHOD: {
149
151
  readonly DELETE: "DELETE";
@@ -4,32 +4,12 @@ import type { IndexableModel } from "@jaypie/fabric";
4
4
  export declare const APEX = "@";
5
5
  export declare const ARCHIVED_SUFFIX = "#archived";
6
6
  export declare const DELETED_SUFFIX = "#deleted";
7
- export declare const INDEX_ALIAS = "indexAlias";
8
- export declare const INDEX_CATEGORY = "indexCategory";
9
- export declare const INDEX_SCOPE = "indexScope";
10
- export declare const INDEX_TYPE = "indexType";
11
- export declare const INDEX_XID = "indexXid";
12
7
  export declare const SEPARATOR = "#";
13
8
  export declare const buildCompositeKey: ((entity: Record<string, unknown> & {
14
9
  model: string;
15
10
  }, fields: string[], suffix?: string) => string) & {
16
11
  mock: any;
17
12
  };
18
- export declare const buildIndexAlias: ((scope: string, model: string, alias: string) => string) & {
19
- mock: any;
20
- };
21
- export declare const buildIndexCategory: ((scope: string, model: string, category: string) => string) & {
22
- mock: any;
23
- };
24
- export declare const buildIndexScope: ((scope: string, model: string) => string) & {
25
- mock: any;
26
- };
27
- export declare const buildIndexType: ((scope: string, model: string, type: string) => string) & {
28
- mock: any;
29
- };
30
- export declare const buildIndexXid: ((scope: string, model: string, xid: string) => string) & {
31
- mock: any;
32
- };
33
13
  export declare const calculateScope: ((parent?: ParentReference) => string) & {
34
14
  mock: any;
35
15
  };
@@ -53,7 +33,6 @@ export declare const resetClient: ((...args: any[]) => any) & {
53
33
  };
54
34
  export declare const getEntity: ((params: {
55
35
  id: string;
56
- model: string;
57
36
  }) => Promise<StorableEntity | null>) & {
58
37
  mock: any;
59
38
  };
@@ -69,19 +48,16 @@ export declare const updateEntity: ((params: {
69
48
  };
70
49
  export declare const deleteEntity: ((params: {
71
50
  id: string;
72
- model: string;
73
51
  }) => Promise<boolean>) & {
74
52
  mock: any;
75
53
  };
76
54
  export declare const archiveEntity: ((params: {
77
55
  id: string;
78
- model: string;
79
56
  }) => Promise<boolean>) & {
80
57
  mock: any;
81
58
  };
82
59
  export declare const destroyEntity: ((params: {
83
60
  id: string;
84
- model: string;
85
61
  }) => Promise<boolean>) & {
86
62
  mock: any;
87
63
  };
@@ -92,7 +68,7 @@ export declare const transactWriteEntities: ((params: {
92
68
  };
93
69
  export declare const queryByScope: ((params: {
94
70
  model: string;
95
- scope: string;
71
+ scope?: string;
96
72
  archived?: boolean;
97
73
  ascending?: boolean;
98
74
  deleted?: boolean;
@@ -106,7 +82,7 @@ export declare const queryByAlias: ((params: {
106
82
  archived?: boolean;
107
83
  deleted?: boolean;
108
84
  model: string;
109
- scope: string;
85
+ scope?: string;
110
86
  }) => Promise<StorableEntity | null>) & {
111
87
  mock: any;
112
88
  };
@@ -117,7 +93,7 @@ export declare const queryByCategory: ((params: {
117
93
  deleted?: boolean;
118
94
  limit?: number;
119
95
  model: string;
120
- scope: string;
96
+ scope?: string;
121
97
  startKey?: Record<string, unknown>;
122
98
  }) => Promise<QueryResult<StorableEntity>>) & {
123
99
  mock: any;
@@ -128,7 +104,7 @@ export declare const queryByType: ((params: {
128
104
  deleted?: boolean;
129
105
  limit?: number;
130
106
  model: string;
131
- scope: string;
107
+ scope?: string;
132
108
  startKey?: Record<string, unknown>;
133
109
  type: string;
134
110
  }) => Promise<QueryResult<StorableEntity>>) & {
@@ -138,7 +114,7 @@ export declare const queryByXid: ((params: {
138
114
  archived?: boolean;
139
115
  deleted?: boolean;
140
116
  model: string;
141
- scope: string;
117
+ scope?: string;
142
118
  xid: string;
143
119
  }) => Promise<StorableEntity | null>) & {
144
120
  mock: any;
@@ -2,6 +2,9 @@ export declare const expandIncludes: ((...args: any[]) => any) & {
2
2
  mock: any;
3
3
  };
4
4
  export declare const isValidAlias: import("vitest").Mock<(...args: any[]) => any>;
5
+ export declare const getAlternativeSpellings: ((...args: any[]) => any) & {
6
+ mock: any;
7
+ };
5
8
  export declare const normalizeAlias: ((...args: any[]) => any) & {
6
9
  mock: any;
7
10
  };
@@ -11,6 +14,9 @@ export declare const parseList: ((...args: any[]) => any) & {
11
14
  export declare const validateAlias: ((...args: any[]) => any) & {
12
15
  mock: any;
13
16
  };
17
+ export declare const createLayeredStore: ((...args: any[]) => any) & {
18
+ mock: any;
19
+ };
14
20
  export declare const createMarkdownStore: ((...args: any[]) => any) & {
15
21
  mock: any;
16
22
  };
@@ -2,6 +2,9 @@ export declare const expandIncludes: ((...args: any[]) => any) & {
2
2
  mock: any;
3
3
  };
4
4
  export declare const isValidAlias: import("vitest").Mock<(...args: any[]) => any>;
5
+ export declare const getAlternativeSpellings: ((...args: any[]) => any) & {
6
+ mock: any;
7
+ };
5
8
  export declare const normalizeAlias: ((...args: any[]) => any) & {
6
9
  mock: any;
7
10
  };
@@ -11,6 +14,9 @@ export declare const parseList: ((...args: any[]) => any) & {
11
14
  export declare const validateAlias: ((...args: any[]) => any) & {
12
15
  mock: any;
13
16
  };
17
+ export declare const createLayeredStore: ((...args: any[]) => any) & {
18
+ mock: any;
19
+ };
14
20
  export declare const createMarkdownStore: ((...args: any[]) => any) & {
15
21
  mock: any;
16
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/testkit",
3
- "version": "1.2.27",
3
+ "version": "1.2.31",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/finlaysonstudio/jaypie.git"