@droz-js/sdk 0.17.2 → 0.18.0
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 +1 -1
- package/src/sdks/audit.d.ts +251 -0
- package/src/sdks/audit.js +48 -0
package/package.json
CHANGED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
export type Maybe<T> = T;
|
|
2
|
+
export type InputMaybe<T> = T;
|
|
3
|
+
export type Exact<T extends {
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
}> = {
|
|
6
|
+
[K in keyof T]: T[K];
|
|
7
|
+
};
|
|
8
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
9
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
10
|
+
};
|
|
11
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
12
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
13
|
+
};
|
|
14
|
+
export type MakeEmpty<T extends {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}, K extends keyof T> = {
|
|
17
|
+
[_ in K]?: never;
|
|
18
|
+
};
|
|
19
|
+
export type Incremental<T> = T | {
|
|
20
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
21
|
+
};
|
|
22
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
23
|
+
export type Scalars = {
|
|
24
|
+
ID: {
|
|
25
|
+
input: string;
|
|
26
|
+
output: string;
|
|
27
|
+
};
|
|
28
|
+
String: {
|
|
29
|
+
input: string;
|
|
30
|
+
output: string;
|
|
31
|
+
};
|
|
32
|
+
Boolean: {
|
|
33
|
+
input: boolean;
|
|
34
|
+
output: boolean;
|
|
35
|
+
};
|
|
36
|
+
Int: {
|
|
37
|
+
input: number;
|
|
38
|
+
output: number;
|
|
39
|
+
};
|
|
40
|
+
Float: {
|
|
41
|
+
input: number;
|
|
42
|
+
output: number;
|
|
43
|
+
};
|
|
44
|
+
Base64: {
|
|
45
|
+
input: object;
|
|
46
|
+
output: string;
|
|
47
|
+
};
|
|
48
|
+
CountryCode: {
|
|
49
|
+
input: string;
|
|
50
|
+
output: string;
|
|
51
|
+
};
|
|
52
|
+
Currency: {
|
|
53
|
+
input: string;
|
|
54
|
+
output: string;
|
|
55
|
+
};
|
|
56
|
+
DRN: {
|
|
57
|
+
input: string;
|
|
58
|
+
output: string;
|
|
59
|
+
};
|
|
60
|
+
Date: {
|
|
61
|
+
input: Date;
|
|
62
|
+
output: Date;
|
|
63
|
+
};
|
|
64
|
+
DateTime: {
|
|
65
|
+
input: Date;
|
|
66
|
+
output: Date;
|
|
67
|
+
};
|
|
68
|
+
EmailAddress: {
|
|
69
|
+
input: string;
|
|
70
|
+
output: string;
|
|
71
|
+
};
|
|
72
|
+
IPAddress: {
|
|
73
|
+
input: string;
|
|
74
|
+
output: string;
|
|
75
|
+
};
|
|
76
|
+
JSON: {
|
|
77
|
+
input: any;
|
|
78
|
+
output: any;
|
|
79
|
+
};
|
|
80
|
+
JSONObject: {
|
|
81
|
+
input: any;
|
|
82
|
+
output: any;
|
|
83
|
+
};
|
|
84
|
+
Locale: {
|
|
85
|
+
input: string;
|
|
86
|
+
output: string;
|
|
87
|
+
};
|
|
88
|
+
Number: {
|
|
89
|
+
input: string | number;
|
|
90
|
+
output: number;
|
|
91
|
+
};
|
|
92
|
+
PhoneNumber: {
|
|
93
|
+
input: string;
|
|
94
|
+
output: string;
|
|
95
|
+
};
|
|
96
|
+
Set: {
|
|
97
|
+
input: any;
|
|
98
|
+
output: any[];
|
|
99
|
+
};
|
|
100
|
+
Tag: {
|
|
101
|
+
input: string;
|
|
102
|
+
output: string;
|
|
103
|
+
};
|
|
104
|
+
TenantId: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
108
|
+
Timezone: {
|
|
109
|
+
input: string;
|
|
110
|
+
output: string;
|
|
111
|
+
};
|
|
112
|
+
URL: {
|
|
113
|
+
input: string;
|
|
114
|
+
output: string;
|
|
115
|
+
};
|
|
116
|
+
VariableName: {
|
|
117
|
+
input: string;
|
|
118
|
+
output: string;
|
|
119
|
+
};
|
|
120
|
+
Void: {
|
|
121
|
+
input: void;
|
|
122
|
+
output: void;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
130
|
+
export declare enum AppInstanceStatus {
|
|
131
|
+
Active = "Active",
|
|
132
|
+
Failing = "Failing",
|
|
133
|
+
Inactive = "Inactive"
|
|
134
|
+
}
|
|
135
|
+
export declare enum AuditVerb {
|
|
136
|
+
Activated = "ACTIVATED",
|
|
137
|
+
Anonymized = "ANONYMIZED",
|
|
138
|
+
Corrected = "CORRECTED",
|
|
139
|
+
Created = "CREATED",
|
|
140
|
+
Deactivated = "DEACTIVATED",
|
|
141
|
+
Deleted = "DELETED",
|
|
142
|
+
Updated = "UPDATED"
|
|
143
|
+
}
|
|
144
|
+
export declare enum Can {
|
|
145
|
+
Manage = "manage",
|
|
146
|
+
Read = "read",
|
|
147
|
+
Remove = "remove",
|
|
148
|
+
Write = "write"
|
|
149
|
+
}
|
|
150
|
+
export type I18nText = {
|
|
151
|
+
lang: Scalars['Locale']['output'];
|
|
152
|
+
value: Scalars['String']['output'];
|
|
153
|
+
};
|
|
154
|
+
export type I18nTextInput = {
|
|
155
|
+
lang: Scalars['Locale']['input'];
|
|
156
|
+
value: Scalars['String']['input'];
|
|
157
|
+
};
|
|
158
|
+
export type Mutation = {
|
|
159
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
160
|
+
};
|
|
161
|
+
export type NumberMatcher = {
|
|
162
|
+
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
163
|
+
eq?: Maybe<Scalars['Number']['output']>;
|
|
164
|
+
gt?: Maybe<Scalars['Number']['output']>;
|
|
165
|
+
gte?: Maybe<Scalars['Number']['output']>;
|
|
166
|
+
lt?: Maybe<Scalars['Number']['output']>;
|
|
167
|
+
lte?: Maybe<Scalars['Number']['output']>;
|
|
168
|
+
ne?: Maybe<Scalars['Number']['output']>;
|
|
169
|
+
};
|
|
170
|
+
export type NumberMatcherInput = {
|
|
171
|
+
btw?: InputMaybe<Array<Scalars['Number']['input']>>;
|
|
172
|
+
eq?: InputMaybe<Scalars['Number']['input']>;
|
|
173
|
+
gt?: InputMaybe<Scalars['Number']['input']>;
|
|
174
|
+
gte?: InputMaybe<Scalars['Number']['input']>;
|
|
175
|
+
lt?: InputMaybe<Scalars['Number']['input']>;
|
|
176
|
+
lte?: InputMaybe<Scalars['Number']['input']>;
|
|
177
|
+
ne?: InputMaybe<Scalars['Number']['input']>;
|
|
178
|
+
};
|
|
179
|
+
export type PageInfo = {
|
|
180
|
+
hasNext: Scalars['Boolean']['output'];
|
|
181
|
+
next?: Maybe<Scalars['Base64']['output']>;
|
|
182
|
+
};
|
|
183
|
+
export type Query = {
|
|
184
|
+
app?: Maybe<Scalars['DRN']['output']>;
|
|
185
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
186
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
187
|
+
};
|
|
188
|
+
export type SearchResultsFacet = {
|
|
189
|
+
name: Scalars['String']['output'];
|
|
190
|
+
stats?: Maybe<SearchResultsFacetStats>;
|
|
191
|
+
values?: Maybe<Array<SearchResultsFacetValue>>;
|
|
192
|
+
};
|
|
193
|
+
export type SearchResultsFacetStats = {
|
|
194
|
+
max?: Maybe<Scalars['Float']['output']>;
|
|
195
|
+
min?: Maybe<Scalars['Float']['output']>;
|
|
196
|
+
};
|
|
197
|
+
export type SearchResultsFacetValue = {
|
|
198
|
+
count: Scalars['Float']['output'];
|
|
199
|
+
value: Scalars['String']['output'];
|
|
200
|
+
};
|
|
201
|
+
export type SearchResultsStats = {
|
|
202
|
+
found: Scalars['Float']['output'];
|
|
203
|
+
outOf: Scalars['Float']['output'];
|
|
204
|
+
page: Scalars['Float']['output'];
|
|
205
|
+
perPage: Scalars['Float']['output'];
|
|
206
|
+
searchTime: Scalars['Float']['output'];
|
|
207
|
+
totalPages: Scalars['Float']['output'];
|
|
208
|
+
};
|
|
209
|
+
export type StringMatcher = {
|
|
210
|
+
btw?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
211
|
+
ct?: Maybe<Scalars['String']['output']>;
|
|
212
|
+
cti?: Maybe<Scalars['String']['output']>;
|
|
213
|
+
eq?: Maybe<Scalars['String']['output']>;
|
|
214
|
+
eqi?: Maybe<Scalars['String']['output']>;
|
|
215
|
+
gt?: Maybe<Scalars['String']['output']>;
|
|
216
|
+
gte?: Maybe<Scalars['String']['output']>;
|
|
217
|
+
in?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
218
|
+
lt?: Maybe<Scalars['String']['output']>;
|
|
219
|
+
lte?: Maybe<Scalars['String']['output']>;
|
|
220
|
+
ne?: Maybe<Scalars['String']['output']>;
|
|
221
|
+
};
|
|
222
|
+
export type StringMatcherInput = {
|
|
223
|
+
btw?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
224
|
+
ct?: InputMaybe<Scalars['String']['input']>;
|
|
225
|
+
cti?: InputMaybe<Scalars['String']['input']>;
|
|
226
|
+
eq?: InputMaybe<Scalars['String']['input']>;
|
|
227
|
+
eqi?: InputMaybe<Scalars['String']['input']>;
|
|
228
|
+
gt?: InputMaybe<Scalars['String']['input']>;
|
|
229
|
+
gte?: InputMaybe<Scalars['String']['input']>;
|
|
230
|
+
in?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
231
|
+
lt?: InputMaybe<Scalars['String']['input']>;
|
|
232
|
+
lte?: InputMaybe<Scalars['String']['input']>;
|
|
233
|
+
ne?: InputMaybe<Scalars['String']['input']>;
|
|
234
|
+
};
|
|
235
|
+
export declare enum Typenames {
|
|
236
|
+
Any = "Any",
|
|
237
|
+
AuditRecord = "AuditRecord",
|
|
238
|
+
GraphqlConnections = "GraphqlConnections",
|
|
239
|
+
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
240
|
+
}
|
|
241
|
+
export type AppQueryVariables = Exact<{
|
|
242
|
+
[key: string]: never;
|
|
243
|
+
}>;
|
|
244
|
+
export type AppQuery = Pick<Query, 'app'>;
|
|
245
|
+
export declare const AppDocument = "\n query app {\n app\n}\n ";
|
|
246
|
+
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
247
|
+
export declare function getSdk<C>(requester: Requester<C>): {
|
|
248
|
+
app(variables?: AppQueryVariables, options?: C): Promise<AppQuery>;
|
|
249
|
+
};
|
|
250
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
251
|
+
export declare const serviceName = "@droz/audit";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.serviceName = exports.AppDocument = exports.Typenames = exports.Can = exports.AuditVerb = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.getSdk = getSdk;
|
|
6
|
+
var AppInstanceStatus;
|
|
7
|
+
(function (AppInstanceStatus) {
|
|
8
|
+
AppInstanceStatus["Active"] = "Active";
|
|
9
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
10
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
11
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
12
|
+
var AuditVerb;
|
|
13
|
+
(function (AuditVerb) {
|
|
14
|
+
AuditVerb["Activated"] = "ACTIVATED";
|
|
15
|
+
AuditVerb["Anonymized"] = "ANONYMIZED";
|
|
16
|
+
AuditVerb["Corrected"] = "CORRECTED";
|
|
17
|
+
AuditVerb["Created"] = "CREATED";
|
|
18
|
+
AuditVerb["Deactivated"] = "DEACTIVATED";
|
|
19
|
+
AuditVerb["Deleted"] = "DELETED";
|
|
20
|
+
AuditVerb["Updated"] = "UPDATED";
|
|
21
|
+
})(AuditVerb || (exports.AuditVerb = AuditVerb = {}));
|
|
22
|
+
var Can;
|
|
23
|
+
(function (Can) {
|
|
24
|
+
Can["Manage"] = "manage";
|
|
25
|
+
Can["Read"] = "read";
|
|
26
|
+
Can["Remove"] = "remove";
|
|
27
|
+
Can["Write"] = "write";
|
|
28
|
+
})(Can || (exports.Can = Can = {}));
|
|
29
|
+
var Typenames;
|
|
30
|
+
(function (Typenames) {
|
|
31
|
+
Typenames["Any"] = "Any";
|
|
32
|
+
Typenames["AuditRecord"] = "AuditRecord";
|
|
33
|
+
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
34
|
+
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
35
|
+
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
36
|
+
exports.AppDocument = `
|
|
37
|
+
query app {
|
|
38
|
+
app
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
function getSdk(requester) {
|
|
42
|
+
return {
|
|
43
|
+
app(variables, options) {
|
|
44
|
+
return requester(exports.AppDocument, variables, options);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.serviceName = '@droz/audit';
|