@edraj/tsdmart 5.1.0 → 5.3.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/CHANGELOG.md +4 -0
- package/dmart.model.ts +12 -9
- package/dmart.service.ts +678 -796
- package/index.ts +0 -2
- package/package.json +1 -1
- package/tsconfig.json +42 -45
- package/config.ts +0 -9
package/CHANGELOG.md
CHANGED
package/dmart.model.ts
CHANGED
|
@@ -83,12 +83,12 @@ export type Permission = {
|
|
|
83
83
|
allowed_actions: Array<ActionType>;
|
|
84
84
|
conditions: Array<string>;
|
|
85
85
|
restricted_fields: Array<any>;
|
|
86
|
-
allowed_fields_values:
|
|
86
|
+
allowed_fields_values: Record<string, any>;
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
export enum Language {
|
|
90
90
|
arabic = "arabic",
|
|
91
|
-
english = "
|
|
91
|
+
english = "english",
|
|
92
92
|
kurdish = "kurdish",
|
|
93
93
|
french = "french",
|
|
94
94
|
turkish = "turkish",
|
|
@@ -153,11 +153,16 @@ export enum QueryType {
|
|
|
153
153
|
attachments_aggregation = "attachments_aggregation",
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export enum
|
|
156
|
+
export enum SortType {
|
|
157
157
|
ascending = "ascending",
|
|
158
158
|
descending = "descending",
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
/** @deprecated Use `SortType` instead. Will be removed in a future version. */
|
|
162
|
+
export const SortyType = SortType;
|
|
163
|
+
/** @deprecated Use `SortType` instead. Will be removed in a future version. */
|
|
164
|
+
export type SortyType = SortType;
|
|
165
|
+
|
|
161
166
|
// enum NotificationPriority {
|
|
162
167
|
// high = "high",
|
|
163
168
|
// medium = "medium",
|
|
@@ -175,7 +180,7 @@ export type QueryRequest = {
|
|
|
175
180
|
from_date?: string;
|
|
176
181
|
to_date?: string;
|
|
177
182
|
sort_by?: string;
|
|
178
|
-
sort_type?:
|
|
183
|
+
sort_type?: SortType;
|
|
179
184
|
retrieve_json_payload?: boolean;
|
|
180
185
|
retrieve_attachments?: boolean;
|
|
181
186
|
retrieve_total?: boolean;
|
|
@@ -294,15 +299,13 @@ export type ResponseEntry = MetaExtended & {
|
|
|
294
299
|
is_active: boolean;
|
|
295
300
|
displayname: Translation;
|
|
296
301
|
description: Translation;
|
|
297
|
-
tags:
|
|
302
|
+
tags: Array<string>;
|
|
298
303
|
created_at: string;
|
|
299
304
|
updated_at: string;
|
|
300
305
|
owner_shortname: string;
|
|
301
306
|
payload?: Payload;
|
|
302
307
|
relationships?: any;
|
|
303
|
-
attachments?:
|
|
304
|
-
workflow_shortname?: string;
|
|
305
|
-
state?: string;
|
|
308
|
+
attachments?: Record<string, unknown>;
|
|
306
309
|
};
|
|
307
310
|
|
|
308
311
|
export type ResponseRecord = {
|
|
@@ -314,7 +317,7 @@ export type ResponseRecord = {
|
|
|
314
317
|
is_active: boolean;
|
|
315
318
|
displayname: Translation;
|
|
316
319
|
description: Translation;
|
|
317
|
-
tags:
|
|
320
|
+
tags: Array<string>;
|
|
318
321
|
created_at: string;
|
|
319
322
|
updated_at: string;
|
|
320
323
|
owner_shortname: string;
|