@edraj/tsdmart 4.0.1 → 4.0.2
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.service.ts +6 -6
- package/package.json +1 -1
package/dmart.service.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ActionResponse,
|
|
6
6
|
ApiQueryResponse,
|
|
7
7
|
ApiResponse,
|
|
8
|
-
ConfirmOTPRequest,
|
|
8
|
+
ConfirmOTPRequest, DmartScope,
|
|
9
9
|
FetchDataAssetRequest,
|
|
10
10
|
GetAttachmentURLRequest,
|
|
11
11
|
GetChildrenRequest,
|
|
@@ -170,7 +170,7 @@ export class Dmart {
|
|
|
170
170
|
|
|
171
171
|
public static async query(
|
|
172
172
|
query: QueryRequest,
|
|
173
|
-
scope: string =
|
|
173
|
+
scope: string = DmartScope.managed
|
|
174
174
|
): Promise<ApiQueryResponse | null> {
|
|
175
175
|
try {
|
|
176
176
|
if (query.type != QueryType.spaces) {
|
|
@@ -255,7 +255,7 @@ export class Dmart {
|
|
|
255
255
|
|
|
256
256
|
public static async retrieveEntry(
|
|
257
257
|
request: RetrieveEntryRequest,
|
|
258
|
-
scope: string =
|
|
258
|
+
scope: string = DmartScope.managed
|
|
259
259
|
): Promise<ResponseEntry | null> {
|
|
260
260
|
try {
|
|
261
261
|
if (request.validate_schema === null) {
|
|
@@ -276,7 +276,7 @@ export class Dmart {
|
|
|
276
276
|
|
|
277
277
|
public static async uploadWithPayload(
|
|
278
278
|
request: UploadWithPayloadRequest,
|
|
279
|
-
scope: string =
|
|
279
|
+
scope: string = DmartScope.managed
|
|
280
280
|
) {
|
|
281
281
|
const request_record_body: any = {
|
|
282
282
|
resource_type: request.resource_type,
|
|
@@ -376,7 +376,7 @@ export class Dmart {
|
|
|
376
376
|
|
|
377
377
|
public static getAttachmentUrl(
|
|
378
378
|
request: GetAttachmentURLRequest,
|
|
379
|
-
scope: string =
|
|
379
|
+
scope: string = DmartScope.managed
|
|
380
380
|
) {
|
|
381
381
|
return `${Dmart.axiosDmartInstance.defaults.baseURL}/${scope}/payload/${request.resource_type}/${request.space_name}/${request.subpath.replace(
|
|
382
382
|
/\/+$/,
|
|
@@ -397,7 +397,7 @@ export class Dmart {
|
|
|
397
397
|
|
|
398
398
|
public static async getPayload(
|
|
399
399
|
request: GetPayloadRequest,
|
|
400
|
-
scope: string =
|
|
400
|
+
scope: string = DmartScope.managed
|
|
401
401
|
) {
|
|
402
402
|
try {
|
|
403
403
|
let url = `${scope}/payload/${request.resource_type}/${request.space_name}/${request.subpath}/${request.shortname}`;
|