@edraj/tsdmart 2.8.0 → 4.0.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/dmart.model.ts CHANGED
@@ -52,6 +52,11 @@ export interface SendOTPRequest {
52
52
  email?: string;
53
53
  }
54
54
 
55
+ export enum DmartScope {
56
+ managed = "managed",
57
+ public = "public",
58
+ }
59
+
55
60
  export interface PasswordResetRequest {
56
61
  msisdn?: string;
57
62
  shortname?: string;
@@ -344,3 +349,88 @@ export type ActionRequest = {
344
349
  export type ApiQueryResponse = ApiResponse & {
345
350
  attributes: { total: number; returned: number };
346
351
  };
352
+
353
+ export interface ResourcesFromCSVRequest {
354
+ space_name: string,
355
+ subpath: string,
356
+ resourceType: ResourceType,
357
+ schema: string,
358
+ payload: File,
359
+ }
360
+
361
+ export interface RetrieveEntryRequest {
362
+ resource_type: ResourceType,
363
+ space_name: string,
364
+ subpath: string,
365
+ shortname: string,
366
+ retrieve_json_payload: boolean,
367
+ retrieve_attachments: boolean,
368
+ validate_schema: boolean|null,
369
+ }
370
+
371
+ export interface UploadWithPayloadRequest {
372
+ space_name: string,
373
+ subpath: string,
374
+ shortname: string,
375
+ resource_type: ResourceType,
376
+ payload_file: File,
377
+ attributes?: Record<string, any> | null,
378
+ }
379
+
380
+ export interface FetchDataAssetRequest {
381
+ resourceType: string,
382
+ dataAssetType: string,
383
+ spaceName: string,
384
+ subpath: string,
385
+ shortname: string,
386
+ query_string?: string,
387
+ filter_data_assets?: string[]
388
+ }
389
+
390
+ export interface GetChildrenRequest {
391
+ space_name: string,
392
+ subpath: string,
393
+ search: string,
394
+ limit: number|null,
395
+ offset: number|null,
396
+ restrict_types: Array<ResourceType>|null
397
+ }
398
+
399
+ export interface GetAttachmentURLRequest {
400
+ resource_type: ResourceType,
401
+ space_name: string,
402
+ subpath: string,
403
+ parent_shortname: string,
404
+ shortname: string,
405
+ ext: string | null,
406
+ }
407
+
408
+ export interface GetPayloadRequest {
409
+ resource_type: ResourceType,
410
+ space_name: string,
411
+ subpath: string,
412
+ shortname: string,
413
+ schemaShortname: string | null,
414
+ ext: string,
415
+ }
416
+
417
+ export interface ProgressTicketRequest {
418
+ space_name: string,
419
+ subpath: string,
420
+ shortname: string,
421
+ action: string,
422
+ resolution?: string,
423
+ comment?: string
424
+ }
425
+
426
+ export interface SubmitRequest {
427
+ spaceName: string,
428
+ schemaShortname: string,
429
+ subpath: string,
430
+ record: any,
431
+ resourceType?: string,
432
+ workflowShortname?: string,
433
+ }
434
+
435
+
436
+