@pexcode/dlis-sdk 1.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/LICENSE +21 -0
- package/README.md +332 -0
- package/dist/api/core/ApiError.d.ts +10 -0
- package/dist/api/core/ApiError.js +15 -0
- package/dist/api/core/ApiRequestOptions.d.ts +13 -0
- package/dist/api/core/ApiRequestOptions.js +2 -0
- package/dist/api/core/ApiResult.d.ts +7 -0
- package/dist/api/core/ApiResult.js +2 -0
- package/dist/api/core/CancelablePromise.d.ts +20 -0
- package/dist/api/core/CancelablePromise.js +116 -0
- package/dist/api/core/OpenAPI.d.ts +16 -0
- package/dist/api/core/OpenAPI.js +14 -0
- package/dist/api/core/request.d.ts +34 -0
- package/dist/api/core/request.js +294 -0
- package/dist/api/index.d.ts +46 -0
- package/dist/api/index.js +48 -0
- package/dist/api/models/AppLevel.d.ts +5 -0
- package/dist/api/models/AppLevel.js +13 -0
- package/dist/api/models/BillingType.d.ts +5 -0
- package/dist/api/models/BillingType.js +13 -0
- package/dist/api/models/BranchId.d.ts +1 -0
- package/dist/api/models/BranchId.js +2 -0
- package/dist/api/models/BranchLedgerAttributes.d.ts +23 -0
- package/dist/api/models/BranchLedgerAttributes.js +2 -0
- package/dist/api/models/CalculateCostAttributes.d.ts +14 -0
- package/dist/api/models/CalculateCostAttributes.js +2 -0
- package/dist/api/models/CheckBlackListAttribute.d.ts +7 -0
- package/dist/api/models/CheckBlackListAttribute.js +2 -0
- package/dist/api/models/ClientAttributes.d.ts +26 -0
- package/dist/api/models/ClientAttributes.js +2 -0
- package/dist/api/models/ClientCreationAttributes.d.ts +12 -0
- package/dist/api/models/ClientCreationAttributes.js +2 -0
- package/dist/api/models/ClientTypeEnum.d.ts +4 -0
- package/dist/api/models/ClientTypeEnum.js +12 -0
- package/dist/api/models/CostId.d.ts +1 -0
- package/dist/api/models/CostId.js +2 -0
- package/dist/api/models/Currencies.d.ts +7 -0
- package/dist/api/models/Currencies.js +15 -0
- package/dist/api/models/EndpointId.d.ts +1 -0
- package/dist/api/models/EndpointId.js +2 -0
- package/dist/api/models/HttpSuccess.d.ts +5 -0
- package/dist/api/models/HttpSuccess.js +2 -0
- package/dist/api/models/LedgerCategory.d.ts +7 -0
- package/dist/api/models/LedgerCategory.js +15 -0
- package/dist/api/models/LedgerStatus.d.ts +5 -0
- package/dist/api/models/LedgerStatus.js +13 -0
- package/dist/api/models/LedgerType.d.ts +4 -0
- package/dist/api/models/LedgerType.js +12 -0
- package/dist/api/models/MovementsStatusAttributes.d.ts +6 -0
- package/dist/api/models/MovementsStatusAttributes.js +14 -0
- package/dist/api/models/PackageId.d.ts +1 -0
- package/dist/api/models/PackageId.js +2 -0
- package/dist/api/models/PackagePlatform.d.ts +6 -0
- package/dist/api/models/PackagePlatform.js +14 -0
- package/dist/api/models/PackageType.d.ts +4 -0
- package/dist/api/models/PackageType.js +12 -0
- package/dist/api/models/PlatformEnum.d.ts +8 -0
- package/dist/api/models/PlatformEnum.js +16 -0
- package/dist/api/models/ProofOfDeliveryType.d.ts +5 -0
- package/dist/api/models/ProofOfDeliveryType.js +13 -0
- package/dist/api/models/ReferenceType.d.ts +4 -0
- package/dist/api/models/ReferenceType.js +12 -0
- package/dist/api/models/SdkId.d.ts +1 -0
- package/dist/api/models/SdkId.js +2 -0
- package/dist/api/models/SdkInfoAttributes.d.ts +25 -0
- package/dist/api/models/SdkInfoAttributes.js +2 -0
- package/dist/api/models/SdkLedgerOverview.d.ts +6 -0
- package/dist/api/models/SdkLedgerOverview.js +2 -0
- package/dist/api/models/SdkPackagesCreationAttributes.d.ts +26 -0
- package/dist/api/models/SdkPackagesCreationAttributes.js +2 -0
- package/dist/api/models/ShippingOption.d.ts +5 -0
- package/dist/api/models/ShippingOption.js +13 -0
- package/dist/api/models/ShippingServiceData.d.ts +10 -0
- package/dist/api/models/ShippingServiceData.js +2 -0
- package/dist/api/models/Sizes.d.ts +5 -0
- package/dist/api/models/Sizes.js +13 -0
- package/dist/api/models/TenantId.d.ts +1 -0
- package/dist/api/models/TenantId.js +2 -0
- package/dist/api/models/UserId.d.ts +1 -0
- package/dist/api/models/UserId.js +2 -0
- package/dist/api/models/appAttributes.d.ts +4 -0
- package/dist/api/models/appAttributes.js +2 -0
- package/dist/api/models/branchesAttributes.d.ts +28 -0
- package/dist/api/models/branchesAttributes.js +2 -0
- package/dist/api/models/citiesAttributes.d.ts +12 -0
- package/dist/api/models/citiesAttributes.js +2 -0
- package/dist/api/models/costModelAttributes.d.ts +29 -0
- package/dist/api/models/costModelAttributes.js +2 -0
- package/dist/api/models/limitedSdkAttributes.d.ts +11 -0
- package/dist/api/models/limitedSdkAttributes.js +2 -0
- package/dist/api/models/movementsAttributes.d.ts +19 -0
- package/dist/api/models/movementsAttributes.js +2 -0
- package/dist/api/models/packagesAttributes.d.ts +70 -0
- package/dist/api/models/packagesAttributes.js +2 -0
- package/dist/api/models/packagesGroupAttributes.d.ts +8 -0
- package/dist/api/models/packagesGroupAttributes.js +2 -0
- package/dist/api/models/regionsAttributes.d.ts +11 -0
- package/dist/api/models/regionsAttributes.js +2 -0
- package/dist/api/models/sdksAttributes.d.ts +23 -0
- package/dist/api/models/sdksAttributes.js +2 -0
- package/dist/api/services/RegionsControllerService.d.ts +30 -0
- package/dist/api/services/RegionsControllerService.js +49 -0
- package/dist/api/services/SdkControllerService.d.ts +54 -0
- package/dist/api/services/SdkControllerService.js +94 -0
- package/dist/api/services/SdkPackagesControllerService.d.ts +55 -0
- package/dist/api/services/SdkPackagesControllerService.js +109 -0
- package/dist/api/services/SdkRegionsControllerService.d.ts +17 -0
- package/dist/api/services/SdkRegionsControllerService.js +36 -0
- package/dist/api-handler.d.ts +10 -0
- package/dist/api-handler.js +26 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +130 -0
- package/dist/sdk.spec.d.ts +1 -0
- package/dist/sdk.spec.js +150 -0
- package/package.json +38 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LedgerStatus = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var LedgerStatus;
|
|
9
|
+
(function (LedgerStatus) {
|
|
10
|
+
LedgerStatus["PENDING"] = "PENDING";
|
|
11
|
+
LedgerStatus["PAID"] = "PAID";
|
|
12
|
+
LedgerStatus["CANCELLED"] = "CANCELLED";
|
|
13
|
+
})(LedgerStatus || (exports.LedgerStatus = LedgerStatus = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LedgerType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var LedgerType;
|
|
9
|
+
(function (LedgerType) {
|
|
10
|
+
LedgerType["INCOME"] = "INCOME";
|
|
11
|
+
LedgerType["EXPENSE"] = "EXPENSE";
|
|
12
|
+
})(LedgerType || (exports.LedgerType = LedgerType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MovementsStatusAttributes = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var MovementsStatusAttributes;
|
|
9
|
+
(function (MovementsStatusAttributes) {
|
|
10
|
+
MovementsStatusAttributes["PROCESSING"] = "processing";
|
|
11
|
+
MovementsStatusAttributes["CANCELED"] = "canceled";
|
|
12
|
+
MovementsStatusAttributes["WAITING"] = "waiting";
|
|
13
|
+
MovementsStatusAttributes["DONE"] = "done";
|
|
14
|
+
})(MovementsStatusAttributes || (exports.MovementsStatusAttributes = MovementsStatusAttributes = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PackageId = string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PackagePlatform = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var PackagePlatform;
|
|
9
|
+
(function (PackagePlatform) {
|
|
10
|
+
PackagePlatform["QDS"] = "QDS";
|
|
11
|
+
PackagePlatform["SDK"] = "sdk";
|
|
12
|
+
PackagePlatform["ANDROID"] = "android";
|
|
13
|
+
PackagePlatform["ENDPOINT"] = "endpoint";
|
|
14
|
+
})(PackagePlatform || (exports.PackagePlatform = PackagePlatform = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PackageType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var PackageType;
|
|
9
|
+
(function (PackageType) {
|
|
10
|
+
PackageType["PACKAGE"] = "Package";
|
|
11
|
+
PackageType["DOCUMENT"] = "Document";
|
|
12
|
+
})(PackageType || (exports.PackageType = PackageType = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformEnum = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var PlatformEnum;
|
|
9
|
+
(function (PlatformEnum) {
|
|
10
|
+
PlatformEnum["QDS"] = "QDS";
|
|
11
|
+
PlatformEnum["ANDROID"] = "android";
|
|
12
|
+
PlatformEnum["SDK"] = "sdk";
|
|
13
|
+
PlatformEnum["IS_APP"] = "isApp";
|
|
14
|
+
PlatformEnum["ENDPOINT"] = "endpoint";
|
|
15
|
+
PlatformEnum["ANY"] = "any";
|
|
16
|
+
})(PlatformEnum || (exports.PlatformEnum = PlatformEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProofOfDeliveryType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var ProofOfDeliveryType;
|
|
9
|
+
(function (ProofOfDeliveryType) {
|
|
10
|
+
ProofOfDeliveryType["NONE"] = "none";
|
|
11
|
+
ProofOfDeliveryType["SIGNATURE"] = "signature";
|
|
12
|
+
ProofOfDeliveryType["OTP"] = "otp";
|
|
13
|
+
})(ProofOfDeliveryType || (exports.ProofOfDeliveryType = ProofOfDeliveryType = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReferenceType = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var ReferenceType;
|
|
9
|
+
(function (ReferenceType) {
|
|
10
|
+
ReferenceType["PACKAGE"] = "PACKAGE";
|
|
11
|
+
ReferenceType["MANUAL"] = "MANUAL";
|
|
12
|
+
})(ReferenceType || (exports.ReferenceType = ReferenceType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SdkId = string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AppLevel } from './AppLevel';
|
|
2
|
+
import type { ClientAttributes } from './ClientAttributes';
|
|
3
|
+
import type { limitedSdkAttributes } from './limitedSdkAttributes';
|
|
4
|
+
import type { SdkId } from './SdkId';
|
|
5
|
+
import type { TenantId } from './TenantId';
|
|
6
|
+
export type SdkInfoAttributes = {
|
|
7
|
+
id: SdkId;
|
|
8
|
+
tenantId: TenantId;
|
|
9
|
+
clientId: string;
|
|
10
|
+
countryId: number;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
currentRequestCount: number;
|
|
13
|
+
lastRequestAt: string;
|
|
14
|
+
host?: string;
|
|
15
|
+
token?: string;
|
|
16
|
+
hook_url?: string;
|
|
17
|
+
hookToken?: string;
|
|
18
|
+
hash?: string;
|
|
19
|
+
appLevel: AppLevel;
|
|
20
|
+
blockedAt?: string;
|
|
21
|
+
createdAt?: string;
|
|
22
|
+
updatedAt?: string;
|
|
23
|
+
limitedApp?: limitedSdkAttributes;
|
|
24
|
+
clientInfo?: ClientAttributes;
|
|
25
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { BillingType } from './BillingType';
|
|
2
|
+
import type { BranchId } from './BranchId';
|
|
3
|
+
import type { ClientCreationAttributes } from './ClientCreationAttributes';
|
|
4
|
+
import type { CostId } from './CostId';
|
|
5
|
+
import type { EndpointId } from './EndpointId';
|
|
6
|
+
import type { PackageType } from './PackageType';
|
|
7
|
+
import type { ProofOfDeliveryType } from './ProofOfDeliveryType';
|
|
8
|
+
import type { ShippingOption } from './ShippingOption';
|
|
9
|
+
import type { TenantId } from './TenantId';
|
|
10
|
+
export type SdkPackagesCreationAttributes = {
|
|
11
|
+
weight: number;
|
|
12
|
+
shippingOption: ShippingOption;
|
|
13
|
+
billingType: BillingType;
|
|
14
|
+
proofOfDeliveryType: ProofOfDeliveryType;
|
|
15
|
+
branchId: BranchId;
|
|
16
|
+
costId: CostId;
|
|
17
|
+
futureTenantId?: TenantId;
|
|
18
|
+
type: PackageType;
|
|
19
|
+
note: string;
|
|
20
|
+
packageCost?: number;
|
|
21
|
+
endpoint?: EndpointId;
|
|
22
|
+
pickup: boolean;
|
|
23
|
+
includeProducts: boolean;
|
|
24
|
+
isTesting: boolean;
|
|
25
|
+
receiverInfo: ClientCreationAttributes;
|
|
26
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShippingOption = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var ShippingOption;
|
|
9
|
+
(function (ShippingOption) {
|
|
10
|
+
ShippingOption["STANDARD"] = "standard";
|
|
11
|
+
ShippingOption["EXPRESS"] = "express";
|
|
12
|
+
ShippingOption["SAME_DAY"] = "same_day";
|
|
13
|
+
})(ShippingOption || (exports.ShippingOption = ShippingOption = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { costModelAttributes } from './costModelAttributes';
|
|
2
|
+
export type ShippingServiceData = {
|
|
3
|
+
baseCost: string;
|
|
4
|
+
weightCost: string;
|
|
5
|
+
expressFee: string;
|
|
6
|
+
tax: string;
|
|
7
|
+
totalCost: string;
|
|
8
|
+
currency: string;
|
|
9
|
+
details: costModelAttributes;
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Sizes = void 0;
|
|
4
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
5
|
+
/* istanbul ignore file */
|
|
6
|
+
/* tslint:disable */
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
var Sizes;
|
|
9
|
+
(function (Sizes) {
|
|
10
|
+
Sizes["SM"] = "sm";
|
|
11
|
+
Sizes["MD"] = "md";
|
|
12
|
+
Sizes["LG"] = "lg";
|
|
13
|
+
})(Sizes || (exports.Sizes = Sizes = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TenantId = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UserId = string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BranchId } from './BranchId';
|
|
2
|
+
import type { costModelAttributes } from './costModelAttributes';
|
|
3
|
+
import type { TenantId } from './TenantId';
|
|
4
|
+
import type { UserId } from './UserId';
|
|
5
|
+
export type branchesAttributes = {
|
|
6
|
+
costModel?: Array<costModelAttributes> | null;
|
|
7
|
+
id: BranchId;
|
|
8
|
+
userId: UserId;
|
|
9
|
+
tenantId: TenantId;
|
|
10
|
+
cityId: number;
|
|
11
|
+
'R': number;
|
|
12
|
+
onlyInternal: boolean;
|
|
13
|
+
availableOnlinePayment: boolean;
|
|
14
|
+
isOnlyEndpoint: boolean;
|
|
15
|
+
isDeleted: boolean;
|
|
16
|
+
workHours: string;
|
|
17
|
+
plz?: number;
|
|
18
|
+
address: string;
|
|
19
|
+
name: string;
|
|
20
|
+
avatar?: string;
|
|
21
|
+
phone?: string;
|
|
22
|
+
rank?: number;
|
|
23
|
+
lat?: number;
|
|
24
|
+
lng?: number;
|
|
25
|
+
createdAt?: string;
|
|
26
|
+
updatedAt?: string;
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { BranchId } from './BranchId';
|
|
2
|
+
import type { CostId } from './CostId';
|
|
3
|
+
import type { Currencies } from './Currencies';
|
|
4
|
+
import type { PackageType } from './PackageType';
|
|
5
|
+
import type { Sizes } from './Sizes';
|
|
6
|
+
import type { TenantId } from './TenantId';
|
|
7
|
+
export type costModelAttributes = {
|
|
8
|
+
id: CostId;
|
|
9
|
+
tenantId: TenantId;
|
|
10
|
+
branchId: BranchId;
|
|
11
|
+
type: PackageType;
|
|
12
|
+
typeId: number;
|
|
13
|
+
modelV1: boolean;
|
|
14
|
+
costPerKilometer: number;
|
|
15
|
+
costPerKg: number;
|
|
16
|
+
expressServiceFee: number;
|
|
17
|
+
sameDayServiceFee: number;
|
|
18
|
+
taxRate: number;
|
|
19
|
+
cityBaseCosts: number;
|
|
20
|
+
unit: string;
|
|
21
|
+
currency: Currencies;
|
|
22
|
+
maxLong: number;
|
|
23
|
+
maxWidth?: number;
|
|
24
|
+
weight: number;
|
|
25
|
+
isDeleted: boolean;
|
|
26
|
+
createdAt?: string;
|
|
27
|
+
updatedAt?: string;
|
|
28
|
+
size: Sizes;
|
|
29
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SdkId } from './SdkId';
|
|
2
|
+
export type limitedSdkAttributes = {
|
|
3
|
+
id: string;
|
|
4
|
+
appId: SdkId;
|
|
5
|
+
maxPackagesCreation: number;
|
|
6
|
+
currentPackagesCreation: number;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
expireDate: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { BranchId } from './BranchId';
|
|
2
|
+
import type { MovementsStatusAttributes } from './MovementsStatusAttributes';
|
|
3
|
+
import type { packagesGroupAttributes } from './packagesGroupAttributes';
|
|
4
|
+
import type { TenantId } from './TenantId';
|
|
5
|
+
import type { UserId } from './UserId';
|
|
6
|
+
export type movementsAttributes = {
|
|
7
|
+
id: string;
|
|
8
|
+
branchId: BranchId;
|
|
9
|
+
userId: UserId;
|
|
10
|
+
tenantId: TenantId;
|
|
11
|
+
deliveryId: UserId;
|
|
12
|
+
startAt?: string;
|
|
13
|
+
endAt?: string;
|
|
14
|
+
status: MovementsStatusAttributes;
|
|
15
|
+
createdAt?: string;
|
|
16
|
+
updatedAt?: string;
|
|
17
|
+
packagesCount?: number;
|
|
18
|
+
packagesGroup?: packagesGroupAttributes;
|
|
19
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { BillingType } from './BillingType';
|
|
2
|
+
import type { BranchId } from './BranchId';
|
|
3
|
+
import type { ClientAttributes } from './ClientAttributes';
|
|
4
|
+
import type { CostId } from './CostId';
|
|
5
|
+
import type { Currencies } from './Currencies';
|
|
6
|
+
import type { EndpointId } from './EndpointId';
|
|
7
|
+
import type { movementsAttributes } from './movementsAttributes';
|
|
8
|
+
import type { PackageId } from './PackageId';
|
|
9
|
+
import type { PackagePlatform } from './PackagePlatform';
|
|
10
|
+
import type { PackageType } from './PackageType';
|
|
11
|
+
import type { ProofOfDeliveryType } from './ProofOfDeliveryType';
|
|
12
|
+
import type { SdkId } from './SdkId';
|
|
13
|
+
import type { ShippingOption } from './ShippingOption';
|
|
14
|
+
import type { Sizes } from './Sizes';
|
|
15
|
+
import type { TenantId } from './TenantId';
|
|
16
|
+
import type { UserId } from './UserId';
|
|
17
|
+
export type packagesAttributes = {
|
|
18
|
+
url?: string;
|
|
19
|
+
id: PackageId;
|
|
20
|
+
adminId?: UserId;
|
|
21
|
+
deliveryId?: UserId;
|
|
22
|
+
tenantId?: TenantId;
|
|
23
|
+
futureTenantId?: TenantId;
|
|
24
|
+
appId?: SdkId;
|
|
25
|
+
limitedAppId?: string;
|
|
26
|
+
receiverCityId?: number;
|
|
27
|
+
code?: string;
|
|
28
|
+
branchId?: BranchId;
|
|
29
|
+
receiverId: string;
|
|
30
|
+
senderId: string;
|
|
31
|
+
type: PackageType;
|
|
32
|
+
note: string;
|
|
33
|
+
shippingCost: number;
|
|
34
|
+
packageCost?: number;
|
|
35
|
+
costId?: CostId;
|
|
36
|
+
paymentMethod?: string;
|
|
37
|
+
paymentId?: string;
|
|
38
|
+
paymentDate?: string;
|
|
39
|
+
currency: Currencies;
|
|
40
|
+
showCostBox: boolean;
|
|
41
|
+
km?: number;
|
|
42
|
+
travelTimeInSeconds?: number;
|
|
43
|
+
travelMode?: string;
|
|
44
|
+
status: number;
|
|
45
|
+
createdAt?: string;
|
|
46
|
+
updatedAt?: string;
|
|
47
|
+
uuid: string;
|
|
48
|
+
roadGroupId?: string;
|
|
49
|
+
size: Sizes;
|
|
50
|
+
wa: boolean;
|
|
51
|
+
kg: number;
|
|
52
|
+
roadAt?: string;
|
|
53
|
+
isPaidOnline: boolean;
|
|
54
|
+
endpoint?: EndpointId;
|
|
55
|
+
pickup: boolean;
|
|
56
|
+
includeProducts: boolean;
|
|
57
|
+
platform: PackagePlatform;
|
|
58
|
+
isTesting: boolean;
|
|
59
|
+
scanned?: string;
|
|
60
|
+
stage: number;
|
|
61
|
+
childrenItem?: number | null;
|
|
62
|
+
shippingOption: ShippingOption;
|
|
63
|
+
billingType: BillingType | null;
|
|
64
|
+
proofOfDeliveryType?: ProofOfDeliveryType;
|
|
65
|
+
proposedDeliveryDate?: string | null;
|
|
66
|
+
tripId?: string | null;
|
|
67
|
+
movementPackageGroup?: Array<movementsAttributes>;
|
|
68
|
+
receiverInfo?: ClientAttributes;
|
|
69
|
+
senderInfo?: ClientAttributes;
|
|
70
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AppLevel } from './AppLevel';
|
|
2
|
+
import type { limitedSdkAttributes } from './limitedSdkAttributes';
|
|
3
|
+
import type { SdkId } from './SdkId';
|
|
4
|
+
import type { TenantId } from './TenantId';
|
|
5
|
+
export type sdksAttributes = {
|
|
6
|
+
id: SdkId;
|
|
7
|
+
tenantId: TenantId;
|
|
8
|
+
clientId: string;
|
|
9
|
+
countryId: number;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
currentRequestCount: number;
|
|
12
|
+
lastRequestAt: string;
|
|
13
|
+
host?: string;
|
|
14
|
+
token?: string;
|
|
15
|
+
hook_url?: string;
|
|
16
|
+
hookToken?: string;
|
|
17
|
+
hash?: string;
|
|
18
|
+
appLevel: AppLevel;
|
|
19
|
+
blockedAt?: string;
|
|
20
|
+
createdAt?: string;
|
|
21
|
+
updatedAt?: string;
|
|
22
|
+
limitedApp?: limitedSdkAttributes;
|
|
23
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { citiesAttributes } from '../models/citiesAttributes';
|
|
2
|
+
import type { HttpSuccess } from '../models/HttpSuccess';
|
|
3
|
+
import type { regionsAttributes } from '../models/regionsAttributes';
|
|
4
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
+
export declare class RegionsControllerService {
|
|
6
|
+
/**
|
|
7
|
+
* @param regionId
|
|
8
|
+
* @returns any Ok
|
|
9
|
+
* @throws ApiError
|
|
10
|
+
*/
|
|
11
|
+
static getCities(regionId: number): CancelablePromise<Array<citiesAttributes>>;
|
|
12
|
+
/**
|
|
13
|
+
* @param countryId
|
|
14
|
+
* @returns any Ok
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
static getRegions(countryId: number): CancelablePromise<Array<regionsAttributes>>;
|
|
18
|
+
/**
|
|
19
|
+
* @param requestBody
|
|
20
|
+
* @returns any Ok
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static createNewCity(requestBody: {
|
|
24
|
+
longitude?: string;
|
|
25
|
+
latitude?: string;
|
|
26
|
+
en_name: string;
|
|
27
|
+
ar_name: string;
|
|
28
|
+
regionId: number;
|
|
29
|
+
}): CancelablePromise<HttpSuccess>;
|
|
30
|
+
}
|