drapcode-developer-sdk 1.0.10-dev → 1.0.10
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/README.md +41 -1
- package/build/index.d.ts +60 -207
- package/build/index.js +134 -42
- package/build/methods/methods.d.ts +49 -179
- package/build/methods/methods.js +305 -555
- package/build/utils/crypt.d.ts +2 -2
- package/build/utils/crypt.js +47 -84
- package/build/utils/util.d.ts +25 -0
- package/build/utils/util.js +94 -9
- package/package.json +1 -1
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { Query, SearchPaginate } from "../utils/constants";
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* POST Calls
|
|
4
|
+
*/
|
|
5
|
+
export declare const bulkCreateItems: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, body: any[]) => Promise<unknown>;
|
|
6
|
+
export declare const countItemByValue: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, fieldName: string, fieldValue: any) => Promise<unknown>;
|
|
7
|
+
export declare const saveCSVData: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, items: any[]) => Promise<unknown>;
|
|
8
|
+
export declare const validateItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, item: any) => Promise<unknown>;
|
|
9
|
+
export declare const bulkDeleteItems: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, body: any) => Promise<unknown>;
|
|
10
|
+
export declare const addReferenceItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, data: any) => Promise<unknown>;
|
|
11
|
+
export declare const removeReferenceItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, data: any) => Promise<unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* GET Calls
|
|
14
|
+
*/
|
|
15
|
+
export declare const getItemOnly: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, itemUuid: string) => Promise<unknown>;
|
|
16
|
+
/**
|
|
17
|
+
* Final Start
|
|
18
|
+
*/
|
|
19
|
+
export declare const createItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, body: any) => Promise<any>;
|
|
20
|
+
export declare const getItemsWithFilter: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, filterUuid: string) => Promise<any>;
|
|
21
|
+
export declare const getItemsCountWithFilter: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, filterUuid: string) => Promise<{
|
|
3
22
|
code: any;
|
|
4
23
|
success: boolean;
|
|
5
24
|
data: any;
|
|
@@ -13,192 +32,43 @@ export declare const getAllItems: (baseurl: string, headers: Record<string, stri
|
|
|
13
32
|
message: string;
|
|
14
33
|
} | {
|
|
15
34
|
code: any;
|
|
16
|
-
success: boolean;
|
|
17
|
-
error: any;
|
|
18
|
-
message: any;
|
|
19
|
-
data: string;
|
|
20
|
-
totalItems?: undefined;
|
|
21
|
-
totalPages?: undefined;
|
|
22
|
-
} | {
|
|
23
|
-
code: number;
|
|
24
|
-
error: any;
|
|
25
|
-
message: any;
|
|
26
|
-
}>;
|
|
27
|
-
export declare const createItem: (baseurl: string, headers: Record<string, string>, collectionName: string, body: any) => Promise<{
|
|
28
|
-
code: any;
|
|
29
|
-
success: boolean;
|
|
30
|
-
data: any;
|
|
31
|
-
error: string;
|
|
32
|
-
message: string;
|
|
33
|
-
} | {
|
|
34
|
-
code: any;
|
|
35
|
-
success: boolean;
|
|
36
|
-
data: string;
|
|
37
|
-
error: any;
|
|
38
|
-
message: string;
|
|
39
|
-
} | {
|
|
40
|
-
code: number;
|
|
41
|
-
error: any;
|
|
42
|
-
message: any;
|
|
43
|
-
} | undefined>;
|
|
44
|
-
export declare const getItemsWithFilter: (baseurl: string, headers: Record<string, string>, collectionName: string, filterUuid: string) => Promise<{
|
|
45
|
-
code: any;
|
|
46
|
-
success: boolean;
|
|
47
|
-
error: any;
|
|
48
|
-
message: any;
|
|
49
|
-
data: string;
|
|
50
|
-
totalItems?: undefined;
|
|
51
|
-
totalPages?: undefined;
|
|
52
|
-
} | {
|
|
53
|
-
code: number;
|
|
54
|
-
success: boolean;
|
|
55
|
-
error: string;
|
|
56
|
-
message: string;
|
|
57
|
-
data: any;
|
|
58
|
-
totalItems: any;
|
|
59
|
-
totalPages: any;
|
|
60
|
-
} | {
|
|
61
|
-
code: number;
|
|
62
|
-
error: any;
|
|
63
|
-
message: any;
|
|
64
|
-
}>;
|
|
65
|
-
export declare const getItemsCountWithFilter: (baseurl: string, headers: Record<string, string>, collectionName: string, filterUuid: string) => Promise<{
|
|
66
|
-
code: any;
|
|
67
|
-
success: boolean;
|
|
68
|
-
error: any;
|
|
69
|
-
message: any;
|
|
70
|
-
data: string;
|
|
71
|
-
totalItems?: undefined;
|
|
72
|
-
totalPages?: undefined;
|
|
73
|
-
} | {
|
|
74
|
-
code: number;
|
|
75
|
-
success: boolean;
|
|
76
|
-
error: string;
|
|
77
|
-
message: string;
|
|
78
|
-
data: any;
|
|
79
|
-
totalItems: any;
|
|
80
|
-
totalPages: any;
|
|
81
|
-
} | {
|
|
82
|
-
code: number;
|
|
83
|
-
error: any;
|
|
84
|
-
message: any;
|
|
85
|
-
}>;
|
|
86
|
-
export declare const getItemWithUuid: (baseurl: string, headers: Record<string, string>, collectionName: string, itemUuid: string) => Promise<any>;
|
|
87
|
-
export declare const getItemOnly: (baseurl: string, headers: Record<string, string>, collectionName: string, itemUuid: string) => Promise<any>;
|
|
88
|
-
export declare const countItemByValue: (baseurl: string, headers: Record<string, string>, collectionName: string, fieldName: string, fieldValue: any) => Promise<any>;
|
|
89
|
-
export declare const saveCSVData: (baseurl: string, headers: Record<string, string>, collectionName: string, items: any[]) => Promise<any>;
|
|
90
|
-
export declare const validateItem: (baseurl: string, headers: Record<string, string>, collectionName: string, item: any) => Promise<any>;
|
|
91
|
-
export declare const lastItem: (baseurl: string, headers: Record<string, string>, collectionName: string) => Promise<any>;
|
|
92
|
-
export declare const updateItemWithUuid: (baseurl: string, headers: Record<string, string>, collectionName: string, itemUuid: string, body: any) => Promise<{
|
|
93
|
-
code: any;
|
|
94
|
-
success: boolean;
|
|
95
|
-
data: any;
|
|
96
|
-
error: string;
|
|
97
|
-
message: string;
|
|
98
|
-
} | {
|
|
99
|
-
code: any;
|
|
100
|
-
success: boolean;
|
|
101
|
-
data: string;
|
|
102
|
-
error: any;
|
|
103
|
-
message: string;
|
|
104
|
-
} | {
|
|
105
|
-
code: any;
|
|
106
|
-
success: boolean;
|
|
107
|
-
error: any;
|
|
108
|
-
message: any;
|
|
109
|
-
data: string;
|
|
110
|
-
totalItems?: undefined;
|
|
111
|
-
totalPages?: undefined;
|
|
112
|
-
} | {
|
|
113
|
-
code: number;
|
|
114
|
-
error: any;
|
|
115
|
-
message: any;
|
|
116
|
-
}>;
|
|
117
|
-
export declare const deleteItemWithUuid: (baseurl: string, headers: Record<string, string>, collectionName: string, itemUuid: string) => Promise<{
|
|
118
|
-
code: any;
|
|
119
|
-
success: boolean;
|
|
120
|
-
error: any;
|
|
121
|
-
message: any;
|
|
122
|
-
data: string;
|
|
123
|
-
totalItems?: undefined;
|
|
124
|
-
totalPages?: undefined;
|
|
125
|
-
} | {
|
|
126
|
-
code: number;
|
|
127
|
-
success: boolean;
|
|
128
|
-
error: string;
|
|
129
|
-
message: string;
|
|
130
|
-
data: any;
|
|
131
|
-
totalItems: any;
|
|
132
|
-
totalPages: any;
|
|
133
|
-
} | {
|
|
134
|
-
code: number;
|
|
135
|
-
error: any;
|
|
136
|
-
message: any;
|
|
137
|
-
}>;
|
|
138
|
-
export declare const bulkDeleteItems: (baseurl: string, headers: Record<string, string>, collectionName: string, body: any) => Promise<{
|
|
139
|
-
success: boolean;
|
|
140
35
|
data: any;
|
|
36
|
+
count: any;
|
|
141
37
|
error: string;
|
|
38
|
+
status: string;
|
|
142
39
|
message: string;
|
|
143
|
-
code?: undefined;
|
|
144
40
|
} | {
|
|
145
|
-
code: number;
|
|
146
|
-
error: any;
|
|
147
|
-
message: any;
|
|
148
|
-
success?: undefined;
|
|
149
|
-
data?: undefined;
|
|
150
|
-
}>;
|
|
151
|
-
export declare const getItemsByids: (baseurl: string, headers: Record<string, string>, collectionName: string, body: any) => Promise<{
|
|
152
|
-
success: boolean;
|
|
153
|
-
data: any;
|
|
154
|
-
error: string;
|
|
155
|
-
message: string;
|
|
156
|
-
code?: undefined;
|
|
157
|
-
} | {
|
|
158
|
-
code: number;
|
|
159
|
-
error: any;
|
|
160
|
-
message: any;
|
|
161
|
-
success?: undefined;
|
|
162
|
-
data?: undefined;
|
|
163
|
-
}>;
|
|
164
|
-
export declare const clearItem: (baseurl: string, headers: Record<string, string>, collectionName: string) => Promise<{
|
|
165
|
-
code: any;
|
|
166
|
-
success: boolean;
|
|
167
|
-
data: any;
|
|
168
|
-
error: string;
|
|
169
|
-
message: string;
|
|
170
|
-
} | {
|
|
171
|
-
code: number;
|
|
172
|
-
error: any;
|
|
173
|
-
message: any;
|
|
174
|
-
success?: undefined;
|
|
175
|
-
data?: undefined;
|
|
176
|
-
}>;
|
|
177
|
-
export declare const deleteFieldItem: (baseurl: string, headers: Record<string, string>, collectionName: string, fieldName: string) => Promise<{
|
|
178
41
|
code: any;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
error: string;
|
|
182
|
-
message: string;
|
|
183
|
-
} | {
|
|
184
|
-
code: number;
|
|
42
|
+
data: never[];
|
|
43
|
+
count: number;
|
|
185
44
|
error: any;
|
|
45
|
+
status: string;
|
|
186
46
|
message: any;
|
|
187
|
-
success?: undefined;
|
|
188
|
-
data?: undefined;
|
|
189
|
-
}>;
|
|
190
|
-
export declare const addReferenceItem: (baseurl: string, headers: Record<string, string>, collectionName: string, data: any) => Promise<any>;
|
|
191
|
-
export declare const removeReferenceItem: (baseurl: string, headers: Record<string, string>, collectionName: string, data: any) => Promise<any>;
|
|
192
|
-
export declare const sendEmail: (baseurl: string, headers: Record<string, string>, templateId: string, sendTo: any) => Promise<{
|
|
193
|
-
success: boolean;
|
|
194
|
-
data: any;
|
|
195
|
-
error: string;
|
|
196
|
-
message: string;
|
|
197
|
-
code?: undefined;
|
|
198
47
|
} | {
|
|
199
48
|
code: number;
|
|
200
49
|
error: any;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
50
|
+
data: never[];
|
|
51
|
+
count: number;
|
|
52
|
+
status: string;
|
|
204
53
|
}>;
|
|
54
|
+
export declare const getAllItems: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, reqQuery: SearchPaginate, query: Query[]) => Promise<unknown>;
|
|
55
|
+
export declare const getItemsByids: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, body: any) => Promise<unknown>;
|
|
56
|
+
export declare const getItemWithUuid: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, itemId: string) => Promise<any>;
|
|
57
|
+
/**
|
|
58
|
+
* Final Stop
|
|
59
|
+
*/
|
|
60
|
+
export declare const lastItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string) => Promise<unknown>;
|
|
61
|
+
/**
|
|
62
|
+
* PUT Call
|
|
63
|
+
*/
|
|
64
|
+
export declare const updateItemWithUuid: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, itemUuid: string, body: any) => Promise<unknown>;
|
|
65
|
+
/**
|
|
66
|
+
* DELETE Call
|
|
67
|
+
*/
|
|
68
|
+
export declare const deleteItemWithUuid: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, itemUuid: string) => Promise<unknown>;
|
|
69
|
+
export declare const clearItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string) => Promise<unknown>;
|
|
70
|
+
export declare const deleteFieldItem: (baseurl: string, headers: Record<string, string>, version: number, collectionName: string, fieldName: string) => Promise<unknown>;
|
|
71
|
+
/**
|
|
72
|
+
* EMAIL
|
|
73
|
+
*/
|
|
74
|
+
export declare const sendEmail: (baseurl: string, headers: Record<string, string>, version: number, templateId: string, sendTo: any) => Promise<unknown>;
|