@edraj/tsdmart 5.3.0 → 5.3.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## 5.3.1
2
+
3
+ - Ship compiled `dist/*.js` + `dist/*.d.ts` instead of raw `.ts` source.
4
+ Consumers' type-checkers (svelte-check, tsc with strict flags) no longer
5
+ walk our source and apply their own rules — `skipLibCheck` now works as
6
+ expected and false-positive errors under `verbatimModuleSyntax` go away.
7
+ - Add `"exports"` field with root + `./dmart.model` + `./dmart.service`
8
+ subpath entries. Library imports via `@edraj/tsdmart`, `@edraj/tsdmart/dmart.model`,
9
+ and `@edraj/tsdmart/dmart.service` all resolve to their compiled forms.
10
+ - Add `"files": ["dist", "README.md", "LICENSE", "CHANGELOG.md"]` so npm
11
+ publishes only the artifacts consumers need.
12
+ - Trim `tsconfig.json` to library settings: remove `paths`, `types`,
13
+ `allowJs`/`checkJs`, `.routify` cruft. Add `declaration`, `declarationMap`,
14
+ `outDir: "dist"`.
15
+
1
16
  ## 1.0.12
2
17
 
3
18
  - Use type-only imports in `dmart.service.ts` for compatibility with `verbatimModuleSyntax`.
@@ -0,0 +1,388 @@
1
+ export declare enum Status {
2
+ success = "success",
3
+ failed = "failed"
4
+ }
5
+ export interface ClientError {
6
+ code: string;
7
+ status: string;
8
+ message: string;
9
+ request?: {
10
+ url: string;
11
+ method: string;
12
+ };
13
+ response: ApiResponse;
14
+ }
15
+ export type Error = {
16
+ type: string;
17
+ code: number;
18
+ message: string;
19
+ info: any;
20
+ };
21
+ export type ApiResponseRecord = {
22
+ resource_type: string;
23
+ shortname: string;
24
+ branch_name?: string;
25
+ subpath: string;
26
+ attributes: Record<string, any>;
27
+ };
28
+ export type ApiResponse = {
29
+ status: Status;
30
+ error?: Error;
31
+ records: Array<ApiResponseRecord>;
32
+ };
33
+ export type Translation = {
34
+ ar: string;
35
+ en: string;
36
+ ku: string;
37
+ };
38
+ export declare enum UserType {
39
+ web = "web",
40
+ mobile = "mobile",
41
+ bot = "bot"
42
+ }
43
+ export interface SendOTPRequest {
44
+ msisdn?: string;
45
+ email?: string;
46
+ }
47
+ export declare enum DmartScope {
48
+ managed = "managed",
49
+ public = "public"
50
+ }
51
+ export interface PasswordResetRequest {
52
+ msisdn?: string;
53
+ shortname?: string;
54
+ email?: string;
55
+ }
56
+ export interface ConfirmOTPRequest {
57
+ code: string;
58
+ }
59
+ export type LoginResponseRecord = ApiResponseRecord & {
60
+ attributes: {
61
+ access_token: string;
62
+ type: UserType;
63
+ displayname: Translation;
64
+ };
65
+ };
66
+ export type LoginResponse = ApiResponse & {
67
+ records: Array<LoginResponseRecord>;
68
+ };
69
+ export type Permission = {
70
+ allowed_actions: Array<ActionType>;
71
+ conditions: Array<string>;
72
+ restricted_fields: Array<any>;
73
+ allowed_fields_values: Record<string, any>;
74
+ };
75
+ export declare enum Language {
76
+ arabic = "arabic",
77
+ english = "english",
78
+ kurdish = "kurdish",
79
+ french = "french",
80
+ turkish = "turkish"
81
+ }
82
+ export type ProfileResponseRecord = ApiResponseRecord & {
83
+ attributes: {
84
+ email: string;
85
+ displayname: Translation;
86
+ type: string;
87
+ language: Language;
88
+ is_email_verified: boolean;
89
+ is_msisdn_verified: boolean;
90
+ force_password_change: boolean;
91
+ permissions: Record<string, Permission>;
92
+ };
93
+ };
94
+ export declare enum ActionType {
95
+ query = "query",
96
+ view = "view",
97
+ update = "update",
98
+ create = "create",
99
+ delete = "delete",
100
+ attach = "attach",
101
+ move = "move",
102
+ progress_ticket = "progress_ticket"
103
+ }
104
+ export type ProfileResponse = ApiResponse & {
105
+ records: Array<ProfileResponseRecord>;
106
+ };
107
+ export declare let headers: {
108
+ [key: string]: string;
109
+ };
110
+ export type AggregationReducer = {
111
+ name: string;
112
+ alias: string;
113
+ args: Array<string>;
114
+ };
115
+ export type AggregationType = {
116
+ load: Array<string>;
117
+ group_by: Array<string>;
118
+ reducers: Array<AggregationReducer> | Array<string>;
119
+ };
120
+ export declare enum QueryType {
121
+ aggregation = "aggregation",
122
+ search = "search",
123
+ subpath = "subpath",
124
+ events = "events",
125
+ history = "history",
126
+ tags = "tags",
127
+ spaces = "spaces",
128
+ counters = "counters",
129
+ reports = "reports",
130
+ attachments = "attachments",
131
+ attachments_aggregation = "attachments_aggregation"
132
+ }
133
+ export declare enum SortType {
134
+ ascending = "ascending",
135
+ descending = "descending"
136
+ }
137
+ /** @deprecated Use `SortType` instead. Will be removed in a future version. */
138
+ export declare const SortyType: typeof SortType;
139
+ /** @deprecated Use `SortType` instead. Will be removed in a future version. */
140
+ export type SortyType = SortType;
141
+ export type QueryRequest = {
142
+ type: QueryType;
143
+ space_name: string;
144
+ subpath: string;
145
+ filter_types?: Array<ResourceType>;
146
+ filter_schema_names?: Array<string>;
147
+ filter_shortnames?: Array<string>;
148
+ search: string;
149
+ from_date?: string;
150
+ to_date?: string;
151
+ sort_by?: string;
152
+ sort_type?: SortType;
153
+ retrieve_json_payload?: boolean;
154
+ retrieve_attachments?: boolean;
155
+ retrieve_total?: boolean;
156
+ validate_schema?: boolean;
157
+ jq_filter?: string;
158
+ exact_subpath?: boolean;
159
+ limit?: number;
160
+ offset?: number;
161
+ aggregation_data?: AggregationType;
162
+ };
163
+ export declare enum RequestType {
164
+ create = "create",
165
+ update = "update",
166
+ progress_ticket = "progress_ticket",
167
+ delete = "delete",
168
+ move = "move",
169
+ updateACL = "update_acl",
170
+ assign = "assign"
171
+ }
172
+ export declare enum ResourceAttachmentType {
173
+ json = "json",
174
+ comment = "comment",
175
+ media = "media",
176
+ relationship = "relationship",
177
+ alteration = "alteration",
178
+ csv = "csv",
179
+ parquet = "parquet",
180
+ jsonl = "jsonl",
181
+ sqlite = "sqlite"
182
+ }
183
+ export declare enum ResourceType {
184
+ user = "user",
185
+ group = "group",
186
+ folder = "folder",
187
+ schema = "schema",
188
+ content = "content",
189
+ acl = "acl",
190
+ comment = "comment",
191
+ reaction = "reaction",
192
+ media = "media",
193
+ locator = "locator",
194
+ relationship = "relationship",
195
+ alteration = "alteration",
196
+ history = "history",
197
+ space = "space",
198
+ branch = "branch",
199
+ permission = "permission",
200
+ role = "role",
201
+ ticket = "ticket",
202
+ json = "json",
203
+ post = "post",
204
+ plugin_wrapper = "plugin_wrapper",
205
+ notification = "notification",
206
+ jsonl = "jsonl",
207
+ csv = "csv",
208
+ sqlite = "sqlite",
209
+ parquet = "parquet"
210
+ }
211
+ export declare enum ContentType {
212
+ text = "text",
213
+ html = "html",
214
+ markdown = "markdown",
215
+ json = "json",
216
+ image = "image",
217
+ python = "python",
218
+ pdf = "pdf",
219
+ audio = "audio",
220
+ video = "video",
221
+ jsonl = "jsonl",
222
+ apk = "apk",
223
+ csv = "csv",
224
+ sqlite = "sqlite",
225
+ parquet = "parquet"
226
+ }
227
+ export declare enum ContentTypeMedia {
228
+ text = "text",
229
+ html = "html",
230
+ markdown = "markdown",
231
+ image = "image",
232
+ python = "python",
233
+ pdf = "pdf",
234
+ audio = "audio",
235
+ video = "video"
236
+ }
237
+ export type Payload = {
238
+ content_type: ContentType;
239
+ schema_shortname?: string;
240
+ checksum?: string;
241
+ body: string | Record<string, any> | any;
242
+ last_validated?: string;
243
+ validation_status?: "valid" | "invalid";
244
+ };
245
+ export type MetaExtended = {
246
+ email: string;
247
+ msisdn: string;
248
+ is_email_verified: boolean;
249
+ is_msisdn_verified: boolean;
250
+ force_password_change: boolean;
251
+ password: string;
252
+ workflow_shortname: string;
253
+ state: string;
254
+ is_open: boolean;
255
+ };
256
+ export type ResponseEntry = MetaExtended & {
257
+ uuid: string;
258
+ shortname: string;
259
+ subpath: string;
260
+ is_active: boolean;
261
+ displayname: Translation;
262
+ description: Translation;
263
+ tags: Array<string>;
264
+ created_at: string;
265
+ updated_at: string;
266
+ owner_shortname: string;
267
+ payload?: Payload;
268
+ relationships?: any;
269
+ attachments?: Record<string, unknown>;
270
+ };
271
+ export type ResponseRecord = {
272
+ resource_type: ResourceType;
273
+ uuid: string;
274
+ shortname: string;
275
+ subpath: string;
276
+ attributes: {
277
+ is_active: boolean;
278
+ displayname: Translation;
279
+ description: Translation;
280
+ tags: Array<string>;
281
+ created_at: string;
282
+ updated_at: string;
283
+ owner_shortname: string;
284
+ payload?: Payload;
285
+ };
286
+ };
287
+ export type ActionResponse = ApiResponse & {
288
+ records: Array<ResponseRecord & {
289
+ attachments: {
290
+ media: Array<ResponseRecord>;
291
+ json: Array<ResponseRecord>;
292
+ };
293
+ }>;
294
+ };
295
+ export type ActionRequestRecord = {
296
+ resource_type: ResourceType;
297
+ uuid?: string;
298
+ shortname: string;
299
+ subpath: string;
300
+ attributes: Record<string, any>;
301
+ attachments?: Record<ResourceType, Array<any>>;
302
+ };
303
+ export type ActionRequest = {
304
+ space_name: string;
305
+ request_type: RequestType;
306
+ records: Array<ActionRequestRecord>;
307
+ };
308
+ export type ApiQueryResponse = ApiResponse & {
309
+ attributes: {
310
+ total: number;
311
+ returned: number;
312
+ };
313
+ };
314
+ export interface ResourcesFromCSVRequest {
315
+ space_name: string;
316
+ subpath: string;
317
+ isUpdate?: boolean;
318
+ resourceType: ResourceType;
319
+ schema: string;
320
+ payload: File;
321
+ }
322
+ export interface RetrieveEntryRequest {
323
+ resource_type: ResourceType;
324
+ space_name: string;
325
+ subpath: string;
326
+ shortname: string;
327
+ retrieve_json_payload: boolean;
328
+ retrieve_attachments: boolean;
329
+ validate_schema: boolean | null;
330
+ }
331
+ export interface UploadWithPayloadRequest {
332
+ space_name: string;
333
+ subpath: string;
334
+ shortname: string;
335
+ resource_type: ResourceType;
336
+ payload_file: File;
337
+ attributes?: Record<string, any> | null;
338
+ }
339
+ export interface FetchDataAssetRequest {
340
+ resourceType: string;
341
+ dataAssetType: string;
342
+ spaceName: string;
343
+ subpath: string;
344
+ shortname: string;
345
+ query_string?: string;
346
+ filter_data_assets?: string[];
347
+ }
348
+ export interface GetChildrenRequest {
349
+ space_name: string;
350
+ subpath: string;
351
+ search: string;
352
+ limit: number | null;
353
+ offset: number | null;
354
+ restrict_types: Array<ResourceType> | null;
355
+ }
356
+ export interface GetAttachmentURLRequest {
357
+ resource_type: ResourceType;
358
+ space_name: string;
359
+ subpath: string;
360
+ parent_shortname: string;
361
+ shortname: string;
362
+ ext: string | null;
363
+ }
364
+ export interface GetPayloadRequest {
365
+ resource_type: ResourceType;
366
+ space_name: string;
367
+ subpath: string;
368
+ shortname: string;
369
+ schemaShortname: string | null;
370
+ ext: string;
371
+ }
372
+ export interface ProgressTicketRequest {
373
+ space_name: string;
374
+ subpath: string;
375
+ shortname: string;
376
+ action: string;
377
+ resolution?: string;
378
+ comment?: string;
379
+ }
380
+ export interface SubmitRequest {
381
+ spaceName: string;
382
+ schemaShortname: string;
383
+ subpath: string;
384
+ record: any;
385
+ resourceType?: string;
386
+ workflowShortname?: string;
387
+ }
388
+ //# sourceMappingURL=dmart.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dmart.model.d.ts","sourceRoot":"","sources":["../dmart.model.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IAChB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAA;KACjB,CAAC;IACF,QAAQ,EAAE,WAAW,CAAA;CACxB;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;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O,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAC,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,GAAC,IAAI,CAAC;IACpB,cAAc,EAAE,KAAK,CAAC,YAAY,CAAC,GAAC,IAAI,CAAA;CAC3C;AAED,MAAM,WAAW,uBAAuB;IACpC,aAAa,EAAE,YAAY,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB;IAC9B,aAAa,EAAE,YAAY,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B"}
@@ -0,0 +1,140 @@
1
+ export var Status;
2
+ (function (Status) {
3
+ Status["success"] = "success";
4
+ Status["failed"] = "failed";
5
+ })(Status || (Status = {}));
6
+ export var UserType;
7
+ (function (UserType) {
8
+ UserType["web"] = "web";
9
+ UserType["mobile"] = "mobile";
10
+ UserType["bot"] = "bot";
11
+ })(UserType || (UserType = {}));
12
+ export var DmartScope;
13
+ (function (DmartScope) {
14
+ DmartScope["managed"] = "managed";
15
+ DmartScope["public"] = "public";
16
+ })(DmartScope || (DmartScope = {}));
17
+ export var Language;
18
+ (function (Language) {
19
+ Language["arabic"] = "arabic";
20
+ Language["english"] = "english";
21
+ Language["kurdish"] = "kurdish";
22
+ Language["french"] = "french";
23
+ Language["turkish"] = "turkish";
24
+ })(Language || (Language = {}));
25
+ export var ActionType;
26
+ (function (ActionType) {
27
+ ActionType["query"] = "query";
28
+ ActionType["view"] = "view";
29
+ ActionType["update"] = "update";
30
+ ActionType["create"] = "create";
31
+ ActionType["delete"] = "delete";
32
+ ActionType["attach"] = "attach";
33
+ ActionType["move"] = "move";
34
+ ActionType["progress_ticket"] = "progress_ticket";
35
+ })(ActionType || (ActionType = {}));
36
+ export let headers = {
37
+ "Content-type": "application/json",
38
+ Authorization: "",
39
+ };
40
+ export var QueryType;
41
+ (function (QueryType) {
42
+ QueryType["aggregation"] = "aggregation";
43
+ QueryType["search"] = "search";
44
+ QueryType["subpath"] = "subpath";
45
+ QueryType["events"] = "events";
46
+ QueryType["history"] = "history";
47
+ QueryType["tags"] = "tags";
48
+ QueryType["spaces"] = "spaces";
49
+ QueryType["counters"] = "counters";
50
+ QueryType["reports"] = "reports";
51
+ QueryType["attachments"] = "attachments";
52
+ QueryType["attachments_aggregation"] = "attachments_aggregation";
53
+ })(QueryType || (QueryType = {}));
54
+ export var SortType;
55
+ (function (SortType) {
56
+ SortType["ascending"] = "ascending";
57
+ SortType["descending"] = "descending";
58
+ })(SortType || (SortType = {}));
59
+ /** @deprecated Use `SortType` instead. Will be removed in a future version. */
60
+ export const SortyType = SortType;
61
+ export var RequestType;
62
+ (function (RequestType) {
63
+ RequestType["create"] = "create";
64
+ RequestType["update"] = "update";
65
+ RequestType["progress_ticket"] = "progress_ticket";
66
+ RequestType["delete"] = "delete";
67
+ RequestType["move"] = "move";
68
+ RequestType["updateACL"] = "update_acl";
69
+ RequestType["assign"] = "assign";
70
+ })(RequestType || (RequestType = {}));
71
+ export var ResourceAttachmentType;
72
+ (function (ResourceAttachmentType) {
73
+ ResourceAttachmentType["json"] = "json";
74
+ ResourceAttachmentType["comment"] = "comment";
75
+ ResourceAttachmentType["media"] = "media";
76
+ ResourceAttachmentType["relationship"] = "relationship";
77
+ ResourceAttachmentType["alteration"] = "alteration";
78
+ ResourceAttachmentType["csv"] = "csv";
79
+ ResourceAttachmentType["parquet"] = "parquet";
80
+ ResourceAttachmentType["jsonl"] = "jsonl";
81
+ ResourceAttachmentType["sqlite"] = "sqlite";
82
+ })(ResourceAttachmentType || (ResourceAttachmentType = {}));
83
+ export var ResourceType;
84
+ (function (ResourceType) {
85
+ ResourceType["user"] = "user";
86
+ ResourceType["group"] = "group";
87
+ ResourceType["folder"] = "folder";
88
+ ResourceType["schema"] = "schema";
89
+ ResourceType["content"] = "content";
90
+ ResourceType["acl"] = "acl";
91
+ ResourceType["comment"] = "comment";
92
+ ResourceType["reaction"] = "reaction";
93
+ ResourceType["media"] = "media";
94
+ ResourceType["locator"] = "locator";
95
+ ResourceType["relationship"] = "relationship";
96
+ ResourceType["alteration"] = "alteration";
97
+ ResourceType["history"] = "history";
98
+ ResourceType["space"] = "space";
99
+ ResourceType["branch"] = "branch";
100
+ ResourceType["permission"] = "permission";
101
+ ResourceType["role"] = "role";
102
+ ResourceType["ticket"] = "ticket";
103
+ ResourceType["json"] = "json";
104
+ ResourceType["post"] = "post";
105
+ ResourceType["plugin_wrapper"] = "plugin_wrapper";
106
+ ResourceType["notification"] = "notification";
107
+ ResourceType["jsonl"] = "jsonl";
108
+ ResourceType["csv"] = "csv";
109
+ ResourceType["sqlite"] = "sqlite";
110
+ ResourceType["parquet"] = "parquet";
111
+ })(ResourceType || (ResourceType = {}));
112
+ export var ContentType;
113
+ (function (ContentType) {
114
+ ContentType["text"] = "text";
115
+ ContentType["html"] = "html";
116
+ ContentType["markdown"] = "markdown";
117
+ ContentType["json"] = "json";
118
+ ContentType["image"] = "image";
119
+ ContentType["python"] = "python";
120
+ ContentType["pdf"] = "pdf";
121
+ ContentType["audio"] = "audio";
122
+ ContentType["video"] = "video";
123
+ ContentType["jsonl"] = "jsonl";
124
+ ContentType["apk"] = "apk";
125
+ ContentType["csv"] = "csv";
126
+ ContentType["sqlite"] = "sqlite";
127
+ ContentType["parquet"] = "parquet";
128
+ })(ContentType || (ContentType = {}));
129
+ export var ContentTypeMedia;
130
+ (function (ContentTypeMedia) {
131
+ ContentTypeMedia["text"] = "text";
132
+ ContentTypeMedia["html"] = "html";
133
+ ContentTypeMedia["markdown"] = "markdown";
134
+ ContentTypeMedia["image"] = "image";
135
+ ContentTypeMedia["python"] = "python";
136
+ ContentTypeMedia["pdf"] = "pdf";
137
+ ContentTypeMedia["audio"] = "audio";
138
+ ContentTypeMedia["video"] = "video";
139
+ })(ContentTypeMedia || (ContentTypeMedia = {}));
140
+ //# sourceMappingURL=dmart.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dmart.model.js","sourceRoot":"","sources":["../dmart.model.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,6BAAmB,CAAA;IACnB,2BAAiB,CAAA;AACnB,CAAC,EAHW,MAAM,KAAN,MAAM,QAGjB;AAwCD,MAAM,CAAN,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,uBAAW,CAAA;IACX,6BAAiB,CAAA;IACjB,uBAAW,CAAA;AACb,CAAC,EAJW,QAAQ,KAAR,QAAQ,QAInB;AAOD,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AACrB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB;AA+BD,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,6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