@experteam-mx/ngx-services 18.9.13 → 20.0.0-beta.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/README.md +24 -24
- package/fesm2022/experteam-mx-ngx-services.mjs +206 -147
- package/fesm2022/experteam-mx-ngx-services.mjs.map +1 -1
- package/index.d.ts +6771 -3
- package/package.json +6 -8
- package/esm2022/experteam-mx-ngx-services.mjs +0 -5
- package/esm2022/lib/apis/api-billing-do.service.mjs +0 -41
- package/esm2022/lib/apis/api-billing-gt.service.mjs +0 -61
- package/esm2022/lib/apis/api-billing-mx.service.mjs +0 -62
- package/esm2022/lib/apis/api-billing-pa.service.mjs +0 -105
- package/esm2022/lib/apis/api-billing-sv.service.mjs +0 -83
- package/esm2022/lib/apis/api-cash-operations.service.mjs +0 -93
- package/esm2022/lib/apis/api-catalogs.service.mjs +0 -593
- package/esm2022/lib/apis/api-companies.service.mjs +0 -1031
- package/esm2022/lib/apis/api-composition.service.mjs +0 -55
- package/esm2022/lib/apis/api-customs.service.mjs +0 -157
- package/esm2022/lib/apis/api-discounts.service.mjs +0 -243
- package/esm2022/lib/apis/api-e-tools-auto-billing.service.mjs +0 -75
- package/esm2022/lib/apis/api-events.service.mjs +0 -53
- package/esm2022/lib/apis/api-external-pickups.service.mjs +0 -74
- package/esm2022/lib/apis/api-inventories.service.mjs +0 -194
- package/esm2022/lib/apis/api-invoices.service.mjs +0 -398
- package/esm2022/lib/apis/api-notifications.service.mjs +0 -104
- package/esm2022/lib/apis/api-open-items.service.mjs +0 -62
- package/esm2022/lib/apis/api-reports.service.mjs +0 -128
- package/esm2022/lib/apis/api-security.service.mjs +0 -245
- package/esm2022/lib/apis/api-services.service.mjs +0 -103
- package/esm2022/lib/apis/api-shipments.service.mjs +0 -87
- package/esm2022/lib/apis/api-supplies.service.mjs +0 -133
- package/esm2022/lib/apis/models/api-billing-do.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-do.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-mx.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-mx.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-pa.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-pa.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-sv.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing-sv.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-billing.models.mjs +0 -2
- package/esm2022/lib/apis/models/api-cash-operations.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-cash-operations.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-catalog.enum.mjs +0 -9
- package/esm2022/lib/apis/models/api-catalog.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-catalog.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-companies.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-companies.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-composition.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-composition.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-customs.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-customs.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-discounts.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-discounts.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-e-tools-auto-billing.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-events.enum.mjs +0 -7
- package/esm2022/lib/apis/models/api-events.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-events.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-external-pickups.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-inventories.enum.mjs +0 -22
- package/esm2022/lib/apis/models/api-inventories.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-inventories.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-invoices.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-invoices.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-notifications.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-notifications.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-open-items.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-open-items.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-reports.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-reports.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-security.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-security.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-services.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-services.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-shipments.enums.mjs +0 -8
- package/esm2022/lib/apis/models/api-shipments.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-shipments.types.mjs +0 -2
- package/esm2022/lib/apis/models/api-supplies.interfaces.mjs +0 -2
- package/esm2022/lib/apis/models/api-supplies.types.mjs +0 -2
- package/esm2022/lib/apis/models/api.models.mjs +0 -2
- package/esm2022/lib/cypher/crypto.service.mjs +0 -93
- package/esm2022/lib/helpers/files.mjs +0 -9
- package/esm2022/lib/helpers/http.mjs +0 -66
- package/esm2022/lib/interceptors/api-headers.interceptor.mjs +0 -24
- package/esm2022/lib/interceptors/api-token.interceptor.mjs +0 -28
- package/esm2022/lib/interceptors/http-caching.interceptor.mjs +0 -37
- package/esm2022/lib/ngx-services.models.mjs +0 -11
- package/esm2022/lib/ngx-services.module.mjs +0 -33
- package/esm2022/lib/websockets/web-sockets.service.mjs +0 -115
- package/esm2022/public-api.mjs +0 -89
- package/lib/apis/api-billing-do.service.d.ts +0 -24
- package/lib/apis/api-billing-gt.service.d.ts +0 -38
- package/lib/apis/api-billing-mx.service.d.ts +0 -39
- package/lib/apis/api-billing-pa.service.d.ts +0 -68
- package/lib/apis/api-billing-sv.service.d.ts +0 -55
- package/lib/apis/api-cash-operations.service.d.ts +0 -62
- package/lib/apis/api-catalogs.service.d.ts +0 -433
- package/lib/apis/api-companies.service.d.ts +0 -714
- package/lib/apis/api-composition.service.d.ts +0 -35
- package/lib/apis/api-customs.service.d.ts +0 -110
- package/lib/apis/api-discounts.service.d.ts +0 -167
- package/lib/apis/api-e-tools-auto-billing.service.d.ts +0 -49
- package/lib/apis/api-events.service.d.ts +0 -33
- package/lib/apis/api-external-pickups.service.d.ts +0 -46
- package/lib/apis/api-inventories.service.d.ts +0 -134
- package/lib/apis/api-invoices.service.d.ts +0 -280
- package/lib/apis/api-notifications.service.d.ts +0 -70
- package/lib/apis/api-open-items.service.d.ts +0 -41
- package/lib/apis/api-reports.service.d.ts +0 -82
- package/lib/apis/api-security.service.d.ts +0 -162
- package/lib/apis/api-services.service.d.ts +0 -67
- package/lib/apis/api-shipments.service.d.ts +0 -58
- package/lib/apis/api-supplies.service.d.ts +0 -93
- package/lib/apis/models/api-billing-do.interfaces.d.ts +0 -6
- package/lib/apis/models/api-billing-do.types.d.ts +0 -5
- package/lib/apis/models/api-billing-mx.interfaces.d.ts +0 -21
- package/lib/apis/models/api-billing-mx.types.d.ts +0 -13
- package/lib/apis/models/api-billing-pa.interfaces.d.ts +0 -26
- package/lib/apis/models/api-billing-pa.types.d.ts +0 -16
- package/lib/apis/models/api-billing-sv.interfaces.d.ts +0 -22
- package/lib/apis/models/api-billing-sv.types.d.ts +0 -21
- package/lib/apis/models/api-billing.models.d.ts +0 -27
- package/lib/apis/models/api-cash-operations.interfaces.d.ts +0 -40
- package/lib/apis/models/api-cash-operations.types.d.ts +0 -30
- package/lib/apis/models/api-catalog.enum.d.ts +0 -7
- package/lib/apis/models/api-catalog.interfaces.d.ts +0 -204
- package/lib/apis/models/api-catalog.types.d.ts +0 -203
- package/lib/apis/models/api-companies.interfaces.d.ts +0 -341
- package/lib/apis/models/api-companies.types.d.ts +0 -457
- package/lib/apis/models/api-composition.interfaces.d.ts +0 -272
- package/lib/apis/models/api-composition.types.d.ts +0 -9
- package/lib/apis/models/api-customs.interfaces.d.ts +0 -125
- package/lib/apis/models/api-customs.types.d.ts +0 -90
- package/lib/apis/models/api-discounts.interfaces.d.ts +0 -78
- package/lib/apis/models/api-discounts.types.d.ts +0 -89
- package/lib/apis/models/api-e-tools-auto-billing.interfaces.d.ts +0 -45
- package/lib/apis/models/api-e-tools-auto-billing.types.d.ts +0 -30
- package/lib/apis/models/api-events.enum.d.ts +0 -5
- package/lib/apis/models/api-events.interfaces.d.ts +0 -21
- package/lib/apis/models/api-events.types.d.ts +0 -14
- package/lib/apis/models/api-external-pickups.types.d.ts +0 -31
- package/lib/apis/models/api-inventories.enum.d.ts +0 -18
- package/lib/apis/models/api-inventories.interfaces.d.ts +0 -40
- package/lib/apis/models/api-inventories.types.d.ts +0 -56
- package/lib/apis/models/api-invoices.interfaces.d.ts +0 -267
- package/lib/apis/models/api-invoices.types.d.ts +0 -195
- package/lib/apis/models/api-notifications.interfaces.d.ts +0 -36
- package/lib/apis/models/api-notifications.types.d.ts +0 -34
- package/lib/apis/models/api-open-items.interfaces.d.ts +0 -32
- package/lib/apis/models/api-open-items.types.d.ts +0 -58
- package/lib/apis/models/api-reports.interfaces.d.ts +0 -233
- package/lib/apis/models/api-reports.types.d.ts +0 -50
- package/lib/apis/models/api-security.interfaces.d.ts +0 -68
- package/lib/apis/models/api-security.types.d.ts +0 -72
- package/lib/apis/models/api-services.interfaces.d.ts +0 -49
- package/lib/apis/models/api-services.types.d.ts +0 -67
- package/lib/apis/models/api-shipments.enums.d.ts +0 -6
- package/lib/apis/models/api-shipments.interfaces.d.ts +0 -12
- package/lib/apis/models/api-shipments.types.d.ts +0 -93
- package/lib/apis/models/api-supplies.interfaces.d.ts +0 -40
- package/lib/apis/models/api-supplies.types.d.ts +0 -50
- package/lib/apis/models/api.models.d.ts +0 -36
- package/lib/cypher/crypto.service.d.ts +0 -15
- package/lib/helpers/files.d.ts +0 -2
- package/lib/helpers/http.d.ts +0 -38
- package/lib/interceptors/api-headers.interceptor.d.ts +0 -12
- package/lib/interceptors/api-token.interceptor.d.ts +0 -11
- package/lib/interceptors/http-caching.interceptor.d.ts +0 -12
- package/lib/ngx-services.models.d.ts +0 -62
- package/lib/ngx-services.module.d.ts +0 -16
- package/lib/websockets/web-sockets.service.d.ts +0 -49
- package/public-api.d.ts +0 -79
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Supply, SupplyLocation, SupplyLocationTransaction, SupplyTransactionType, SupplyType } from './api-supplies.interfaces';
|
|
2
|
-
export type SuppliesOut = {
|
|
3
|
-
supplies: Supply[];
|
|
4
|
-
total: number;
|
|
5
|
-
};
|
|
6
|
-
export type SupplyIn = {
|
|
7
|
-
supplyTypeId: number;
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
countryId: number;
|
|
11
|
-
enabledForDropoff: boolean;
|
|
12
|
-
supplyPacking: {
|
|
13
|
-
value: number;
|
|
14
|
-
weight: number;
|
|
15
|
-
height: number;
|
|
16
|
-
depth: number;
|
|
17
|
-
width: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type SupplyOut = {
|
|
21
|
-
supply: Supply;
|
|
22
|
-
};
|
|
23
|
-
export type SupplyTypesOut = {
|
|
24
|
-
supplyTypes: SupplyType[];
|
|
25
|
-
total: number;
|
|
26
|
-
};
|
|
27
|
-
export type SupplyLocationIn = {
|
|
28
|
-
supplyId: number;
|
|
29
|
-
locationId: number;
|
|
30
|
-
stock: number;
|
|
31
|
-
};
|
|
32
|
-
export type SupplyLocationOut = {
|
|
33
|
-
supplyLocation: SupplyLocation;
|
|
34
|
-
};
|
|
35
|
-
export type SupplyLocationsOut = {
|
|
36
|
-
supplyLocations: SupplyLocation[];
|
|
37
|
-
total: number;
|
|
38
|
-
};
|
|
39
|
-
export type SupplyLocationTransactionIn = {
|
|
40
|
-
supplyLocationId: number;
|
|
41
|
-
supplyTransactionTypeId: number;
|
|
42
|
-
quantity: number;
|
|
43
|
-
};
|
|
44
|
-
export type SupplyLocationTransactionOut = {
|
|
45
|
-
supplyLocationTransaction: SupplyLocationTransaction;
|
|
46
|
-
};
|
|
47
|
-
export type SupplyTransactionTypesOut = {
|
|
48
|
-
supplyTransactionTypes: SupplyTransactionType[];
|
|
49
|
-
total: number;
|
|
50
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface ApiResponse {
|
|
2
|
-
status: 'success' | 'fail' | 'error';
|
|
3
|
-
}
|
|
4
|
-
export interface ApiSuccess<T> extends ApiResponse {
|
|
5
|
-
status: 'success';
|
|
6
|
-
data: T;
|
|
7
|
-
}
|
|
8
|
-
export interface ApiModel {
|
|
9
|
-
id: number;
|
|
10
|
-
}
|
|
11
|
-
export interface LaravelModel extends ApiModel {
|
|
12
|
-
is_active: boolean;
|
|
13
|
-
created_at: string;
|
|
14
|
-
updated_at: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ActiveLessLaravelModel extends ApiModel {
|
|
17
|
-
created_at: string;
|
|
18
|
-
updated_at: string;
|
|
19
|
-
}
|
|
20
|
-
export interface SymfonyModel extends ApiModel {
|
|
21
|
-
isActive: boolean;
|
|
22
|
-
createdAt: string;
|
|
23
|
-
updatedAt: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ActiveLessSymfonyModel extends ApiModel {
|
|
26
|
-
createdAt: string;
|
|
27
|
-
updatedAt: string;
|
|
28
|
-
}
|
|
29
|
-
export type QueryParams = {
|
|
30
|
-
[param: string]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
31
|
-
};
|
|
32
|
-
export interface Translations {
|
|
33
|
-
[key: string]: {
|
|
34
|
-
[langCode: string]: string;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Environment } from '../ngx-services.models';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CryptoService {
|
|
4
|
-
private environments;
|
|
5
|
-
constructor(environments: Environment);
|
|
6
|
-
encryptAES(plaintext: string): Promise<string>;
|
|
7
|
-
decryptAES(payload: string): Promise<string>;
|
|
8
|
-
private loadKey;
|
|
9
|
-
private uint8ArrayToBase64;
|
|
10
|
-
private base64ToUint8Array;
|
|
11
|
-
private arrayBufferToBase64;
|
|
12
|
-
private base64ToArrayBuffer;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CryptoService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CryptoService>;
|
|
15
|
-
}
|
package/lib/helpers/files.d.ts
DELETED
package/lib/helpers/http.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
-
import { QueryParams } from '../apis/models/api.models';
|
|
3
|
-
/**
|
|
4
|
-
* Convert an object of key-value pairs into a URL query string.
|
|
5
|
-
*
|
|
6
|
-
* @param {Object} params - The key-value pairs to converted into a query string.
|
|
7
|
-
*
|
|
8
|
-
* @return {string} - The generated query string.
|
|
9
|
-
*/
|
|
10
|
-
export declare const queryString: (params: QueryParams) => string;
|
|
11
|
-
/**
|
|
12
|
-
* Creates an instance of HttpParams using the provided params object.
|
|
13
|
-
*
|
|
14
|
-
* @param {Object} params - The object containing the params to the HttpParams constructor.
|
|
15
|
-
*
|
|
16
|
-
* @returns {HttpParams} - An instance of HttpParams created from the params object.
|
|
17
|
-
*/
|
|
18
|
-
export declare const httpParams: (params: QueryParams) => HttpParams;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the headers for generating PDF files.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} format - The format of the headers, 'object' or 'http_header'.
|
|
23
|
-
*
|
|
24
|
-
* @returns {HttpHeaders | { [header: string]: string | string[] }} - The headers for generating PDF files.
|
|
25
|
-
*/
|
|
26
|
-
export declare const pdfHeaders: (format?: "object" | "http_header") => HttpHeaders | {
|
|
27
|
-
[header: string]: string | string[];
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Returns the headers for generating XML files.
|
|
31
|
-
*
|
|
32
|
-
* @param {string} format - The format of the headers, 'object' or 'http_header'.
|
|
33
|
-
*
|
|
34
|
-
* @returns {HttpHeaders | { [header: string]: string | string[] }} - The headers for generating XML files.
|
|
35
|
-
*/
|
|
36
|
-
export declare const xmlHeaders: (format?: "object" | "http_header") => HttpHeaders | {
|
|
37
|
-
[header: string]: string | string[];
|
|
38
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Intercepts an outgoing HTTP request and modifies its headers to include default values
|
|
5
|
-
* for Cache-Control, Expires, Pragma, Content-Type, Accept, and Accept-Language if they
|
|
6
|
-
* are not already present.
|
|
7
|
-
*
|
|
8
|
-
* @param {HttpRequest<unknown>} req - The outgoing HTTP request to be intercepted and modified.
|
|
9
|
-
* @param {HttpHandlerFn} next - The next handler in the chain to pass the modified request to.
|
|
10
|
-
* @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event resulting from the processed request.
|
|
11
|
-
*/
|
|
12
|
-
export declare function apiHeadersInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* An HTTP interceptor to append an Authorization header with a Bearer token
|
|
5
|
-
* to outgoing HTTP requests if certain conditions are met.
|
|
6
|
-
*
|
|
7
|
-
* @param {HttpRequest<unknown>} req - The outgoing HTTP request object which may be modified.
|
|
8
|
-
* @param {HttpHandlerFn} next - The next handler in the HTTP request pipeline.
|
|
9
|
-
* @return {Observable<HttpEvent<unknown>>} An observable of the HTTP event stream resulting from the request.
|
|
10
|
-
*/
|
|
11
|
-
export declare function apiTokenInterceptor(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
/**
|
|
4
|
-
* Interceptor function to handle HTTP caching for GET requests. It retrieves cached responses
|
|
5
|
-
* if available and valid; otherwise, it processes the request and caches the response for future use.
|
|
6
|
-
*
|
|
7
|
-
* @param {HttpRequest<any>} req - The HTTP request object being intercepted.
|
|
8
|
-
* @param {HttpHandlerFn} next - The next HTTP handler function in the chain to process the request.
|
|
9
|
-
* @return {Observable<HttpEvent<any>>} An observable that emits the HTTP event, either from cache
|
|
10
|
-
* or by invoking the next handler.
|
|
11
|
-
*/
|
|
12
|
-
export declare function httpCachingInterceptor(req: HttpRequest<any>, next: HttpHandlerFn): Observable<HttpEvent<any>>;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Represents the configuration settings for the application's environment.
|
|
4
|
-
* This type includes various API endpoint URLs, authentication details, caching options, and other relevant settings.
|
|
5
|
-
*
|
|
6
|
-
* Properties:
|
|
7
|
-
* - apiCompaniesUrl: The URL for the companies API endpoint.
|
|
8
|
-
* - apiEventsUrl: The URL for the events API endpoint.
|
|
9
|
-
* - apiInvoicesUrl: The URL for the invoices API endpoint.
|
|
10
|
-
* - apiReportsUrl: The URL for the reports API endpoint.
|
|
11
|
-
* - apiSecurityUrl: The URL for the security-related API endpoint.
|
|
12
|
-
* - apiShipmentUrl: The URL for the shipment API endpoint.
|
|
13
|
-
* - authCookie: The name of the authentication cookie used for user sessions.
|
|
14
|
-
* - cacheTtl: Optional. Specifies the time-to-live (TTL) for cached items.
|
|
15
|
-
* - printUrl: Optional. The URL used for generating or downloading printable documents.
|
|
16
|
-
* - secretKey: A secret key used for authentication or other secure operations.
|
|
17
|
-
*/
|
|
18
|
-
export type Environment = {
|
|
19
|
-
apiBillingDO?: string;
|
|
20
|
-
apiBillingGT?: string;
|
|
21
|
-
apiBillingMX?: string;
|
|
22
|
-
apiBillingPA?: string;
|
|
23
|
-
apiBillingSV?: string;
|
|
24
|
-
apiCashOperationsUrl?: string;
|
|
25
|
-
apiCatalogsUrl?: string;
|
|
26
|
-
apiCompaniesUrl?: string;
|
|
27
|
-
apiCompositionUrl?: string;
|
|
28
|
-
apiCustomsUrl?: string;
|
|
29
|
-
apiDiscountsUrl?: string;
|
|
30
|
-
apiEventsUrl?: string;
|
|
31
|
-
apiEToolsAutoBilling?: string;
|
|
32
|
-
apiExternalOperationsKey?: string;
|
|
33
|
-
apiExternalOperationsUrl?: string;
|
|
34
|
-
apiInventoriesUrl?: string;
|
|
35
|
-
apiInvoicesUrl?: string;
|
|
36
|
-
apiNotificationsUrl?: string;
|
|
37
|
-
apiOpenItemsUrl?: string;
|
|
38
|
-
apiReportsUrl?: string;
|
|
39
|
-
apiSecurityUrl?: string;
|
|
40
|
-
apiServicesUrl?: string;
|
|
41
|
-
apiShipmentUrl?: string;
|
|
42
|
-
apiSuppliesUrl?: string;
|
|
43
|
-
authCookie: string;
|
|
44
|
-
cacheTtl?: number;
|
|
45
|
-
printUrl?: string;
|
|
46
|
-
secretKey: string;
|
|
47
|
-
sockets?: {
|
|
48
|
-
app_key: string;
|
|
49
|
-
debug?: boolean;
|
|
50
|
-
port: number;
|
|
51
|
-
url: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Injection token used to inject environment configurations.
|
|
56
|
-
*
|
|
57
|
-
* `ENVIRONMENT_TOKEN` is a dependency injection token that allows
|
|
58
|
-
* for the provision and retrieval of environment-specific configurations
|
|
59
|
-
* within the application. This token is typically associated with an
|
|
60
|
-
* `Environment` type that defines the structure of the configuration.
|
|
61
|
-
*/
|
|
62
|
-
export declare const ENVIRONMENT_TOKEN: InjectionToken<Environment>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { Environment } from './ngx-services.models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgxServicesModule {
|
|
5
|
-
/**
|
|
6
|
-
* Returns a module with providers for the NgxServicesModule.
|
|
7
|
-
*
|
|
8
|
-
* @param {Environment} environment - The environment configuration object.
|
|
9
|
-
*
|
|
10
|
-
* @return {ModuleWithProviders<NgxServicesModule>} The module with providers for the NgxServicesModule.
|
|
11
|
-
*/
|
|
12
|
-
static forRoot(environment: Environment): ModuleWithProviders<NgxServicesModule>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxServicesModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxServicesModule, never, never, never>;
|
|
15
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgxServicesModule>;
|
|
16
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Channel } from 'pusher-js';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Environment } from '../ngx-services.models';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class WebSocketsService {
|
|
6
|
-
private environments;
|
|
7
|
-
private pusher;
|
|
8
|
-
constructor(environments: Environment);
|
|
9
|
-
/**
|
|
10
|
-
* Publishes an event to the specified channel with the given data.
|
|
11
|
-
*
|
|
12
|
-
* @param {Channel} channel - The channel instance where the event will be published.
|
|
13
|
-
* @param {string} eventName - The name of the event to be published.
|
|
14
|
-
* @param {T} data - The payload data to be sent with the event.
|
|
15
|
-
* @return {Promise<boolean>} A promise that resolves to a boolean indicating
|
|
16
|
-
* whether the event was successfully triggered on the channel.
|
|
17
|
-
*/
|
|
18
|
-
pub<T>(channel: Channel, eventName: string, data: T): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Subscribes to a specified channel, retrying multiple times upon failure.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} channelName - The name of the channel to be subscribed to.
|
|
23
|
-
* @return {Promise<Channel>} A promise that resolves to the subscribed channel object if successful.
|
|
24
|
-
* @throws {Error} If the subscription fails after the maximum number of retry attempts.
|
|
25
|
-
*/
|
|
26
|
-
channelSub(channelName: string): Promise<Channel>;
|
|
27
|
-
/**
|
|
28
|
-
* Binds an event listener to a specified event on a given channel using Pusher or a Channel object,
|
|
29
|
-
* and returns an Observable that emits event data of type T.
|
|
30
|
-
*
|
|
31
|
-
* @param {Channel|string} channel - The channel to bind the event to. It can be a Channel object or a string representing the channel name.
|
|
32
|
-
* @param {string} event - The name of the event to bind to the channel.
|
|
33
|
-
* @return {Observable<T>} An Observable that emits data of type T when the specified event is triggered.
|
|
34
|
-
*/
|
|
35
|
-
eventBind<T>(channel: Channel | string, event: string): Observable<T>;
|
|
36
|
-
/**
|
|
37
|
-
* Unbinds an event from the specified channel and returns an observable
|
|
38
|
-
* that emits data when the event callback is triggered.
|
|
39
|
-
*
|
|
40
|
-
* @param {Channel} channel - The channel object from which the event should be unbound.
|
|
41
|
-
* @param {string} event - The name of the event to unbind.
|
|
42
|
-
* @return {Observable<T>} An observable that emits data from the unbound event callback.
|
|
43
|
-
*/
|
|
44
|
-
eventUnbind<T>(channel: Channel, event: string): Observable<unknown>;
|
|
45
|
-
private connect;
|
|
46
|
-
private wait;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebSocketsService, never>;
|
|
48
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebSocketsService>;
|
|
49
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
export * from './lib/ngx-services.models';
|
|
2
|
-
export * from './lib/ngx-services.module';
|
|
3
|
-
export * from './lib/apis/api-billing-do.service';
|
|
4
|
-
export * from './lib/apis/api-billing-gt.service';
|
|
5
|
-
export * from './lib/apis/api-billing-mx.service';
|
|
6
|
-
export * from './lib/apis/api-billing-pa.service';
|
|
7
|
-
export * from './lib/apis/api-billing-sv.service';
|
|
8
|
-
export * from './lib/apis/api-cash-operations.service';
|
|
9
|
-
export * from './lib/apis/api-catalogs.service';
|
|
10
|
-
export * from './lib/apis/api-companies.service';
|
|
11
|
-
export * from './lib/apis/api-composition.service';
|
|
12
|
-
export * from './lib/apis/api-customs.service';
|
|
13
|
-
export * from './lib/apis/api-discounts.service';
|
|
14
|
-
export * from './lib/apis/api-events.service';
|
|
15
|
-
export * from './lib/apis/api-e-tools-auto-billing.service';
|
|
16
|
-
export * from './lib/apis/api-external-pickups.service';
|
|
17
|
-
export * from './lib/apis/api-inventories.service';
|
|
18
|
-
export * from './lib/apis/api-invoices.service';
|
|
19
|
-
export * from './lib/apis/api-notifications.service';
|
|
20
|
-
export * from './lib/apis/api-open-items.service';
|
|
21
|
-
export * from './lib/apis/api-reports.service';
|
|
22
|
-
export * from './lib/apis/api-security.service';
|
|
23
|
-
export * from './lib/apis/api-services.service';
|
|
24
|
-
export * from './lib/apis/api-shipments.service';
|
|
25
|
-
export * from './lib/apis/api-supplies.service';
|
|
26
|
-
export * from './lib/apis/models/api-billing.models';
|
|
27
|
-
export * from './lib/apis/models/api-billing-do.interfaces';
|
|
28
|
-
export * from './lib/apis/models/api-billing-do.types';
|
|
29
|
-
export * from './lib/apis/models/api-billing-mx.interfaces';
|
|
30
|
-
export * from './lib/apis/models/api-billing-mx.types';
|
|
31
|
-
export * from './lib/apis/models/api-billing-pa.interfaces';
|
|
32
|
-
export * from './lib/apis/models/api-billing-pa.types';
|
|
33
|
-
export * from './lib/apis/models/api-billing-sv.interfaces';
|
|
34
|
-
export * from './lib/apis/models/api-billing-sv.types';
|
|
35
|
-
export * from './lib/apis/models/api-cash-operations.interfaces';
|
|
36
|
-
export * from './lib/apis/models/api-cash-operations.types';
|
|
37
|
-
export * from './lib/apis/models/api-catalog.enum';
|
|
38
|
-
export * from './lib/apis/models/api-catalog.interfaces';
|
|
39
|
-
export * from './lib/apis/models/api-catalog.types';
|
|
40
|
-
export * from './lib/apis/models/api-companies.interfaces';
|
|
41
|
-
export * from './lib/apis/models/api-companies.types';
|
|
42
|
-
export * from './lib/apis/models/api-composition.interfaces';
|
|
43
|
-
export * from './lib/apis/models/api-composition.types';
|
|
44
|
-
export * from './lib/apis/models/api-customs.interfaces';
|
|
45
|
-
export * from './lib/apis/models/api-customs.types';
|
|
46
|
-
export * from './lib/apis/models/api-discounts.interfaces';
|
|
47
|
-
export * from './lib/apis/models/api-discounts.types';
|
|
48
|
-
export * from './lib/apis/models/api-events.enum';
|
|
49
|
-
export * from './lib/apis/models/api-events.interfaces';
|
|
50
|
-
export * from './lib/apis/models/api-events.types';
|
|
51
|
-
export * from './lib/apis/models/api-e-tools-auto-billing.interfaces';
|
|
52
|
-
export * from './lib/apis/models/api-e-tools-auto-billing.types';
|
|
53
|
-
export * from './lib/apis/models/api-external-pickups.types';
|
|
54
|
-
export * from './lib/apis/models/api-inventories.enum';
|
|
55
|
-
export * from './lib/apis/models/api-inventories.interfaces';
|
|
56
|
-
export * from './lib/apis/models/api-inventories.types';
|
|
57
|
-
export * from './lib/apis/models/api-invoices.interfaces';
|
|
58
|
-
export * from './lib/apis/models/api-invoices.types';
|
|
59
|
-
export * from './lib/apis/models/api-notifications.interfaces';
|
|
60
|
-
export * from './lib/apis/models/api-notifications.types';
|
|
61
|
-
export * from './lib/apis/models/api-open-items.interfaces';
|
|
62
|
-
export * from './lib/apis/models/api-open-items.types';
|
|
63
|
-
export * from './lib/apis/models/api-reports.interfaces';
|
|
64
|
-
export * from './lib/apis/models/api-security.interfaces';
|
|
65
|
-
export * from './lib/apis/models/api-security.types';
|
|
66
|
-
export * from './lib/apis/models/api-services.interfaces';
|
|
67
|
-
export * from './lib/apis/models/api-services.types';
|
|
68
|
-
export * from './lib/apis/models/api-shipments.interfaces';
|
|
69
|
-
export * from './lib/apis/models/api-shipments.types';
|
|
70
|
-
export * from './lib/apis/models/api-supplies.interfaces';
|
|
71
|
-
export * from './lib/apis/models/api-supplies.types';
|
|
72
|
-
export * from './lib/apis/models/api.models';
|
|
73
|
-
export * from './lib/websockets/web-sockets.service';
|
|
74
|
-
export * from './lib/cypher/crypto.service';
|
|
75
|
-
export * from './lib/interceptors/api-headers.interceptor';
|
|
76
|
-
export * from './lib/interceptors/api-token.interceptor';
|
|
77
|
-
export * from './lib/interceptors/http-caching.interceptor';
|
|
78
|
-
export * from './lib/helpers/http';
|
|
79
|
-
export * from './lib/helpers/files';
|