@ptkl/sdk 1.0.3 → 1.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/dist/index.0.10.js +453 -135
- package/dist/index.0.9.js +135 -8
- package/dist/package.json +1 -1
- package/dist/v0.10/api/component.d.ts +152 -20
- package/dist/v0.10/api/functions.d.ts +1 -2
- package/dist/v0.10/api/index.d.ts +4 -2
- package/dist/v0.10/api/integrations/dms.d.ts +0 -9
- package/dist/v0.10/api/integrations/mail.d.ts +125 -0
- package/dist/v0.10/api/integrations/serbia/minfin/index.d.ts +10 -0
- package/dist/v0.10/api/integrations/serbia/minfin/vpfr.d.ts +4 -0
- package/dist/v0.10/api/integrations/serbia/nbs/index.d.ts +10 -0
- package/dist/v0.10/api/integrations/serbiaUtil.d.ts +9 -7
- package/dist/v0.10/api/integrations.d.ts +6 -3
- package/dist/v0.10/api/platform.d.ts +2 -2
- package/dist/v0.10/api/platformBaseClient.d.ts +0 -1
- package/dist/v0.10/api/project.d.ts +6 -1
- package/dist/v0.10/index.cjs.js +453 -135
- package/dist/v0.10/index.esm.js +451 -135
- package/dist/v0.10/types/component.d.ts +73 -3
- package/dist/v0.10/types/integrations/mail.d.ts +156 -0
- package/dist/v0.10/types/integrations/minimax.d.ts +961 -0
- package/dist/v0.10/types/integrations/payments.d.ts +48 -0
- package/dist/v0.10/types/integrations/serbiaUtils.d.ts +40 -0
- package/dist/v0.10/types/integrations/serbiaUtits.d.ts +37 -0
- package/dist/v0.9/api/functions.d.ts +1 -2
- package/dist/v0.9/api/index.d.ts +1 -0
- package/dist/v0.9/api/integrations/mail.d.ts +69 -0
- package/dist/v0.9/api/integrations/serbiaUtil.d.ts +10 -7
- package/dist/v0.9/api/integrations.d.ts +2 -0
- package/dist/v0.9/api/platformBaseClient.d.ts +0 -1
- package/dist/v0.9/api/project.d.ts +6 -1
- package/dist/v0.9/api/roles.d.ts +12 -0
- package/dist/v0.9/index.cjs.js +135 -8
- package/dist/v0.9/index.esm.js +135 -9
- package/dist/v0.9/types/integrations/mail.d.ts +155 -0
- package/dist/v0.9/types/integrations/minimax.d.ts +961 -0
- package/dist/v0.9/types/integrations/payments.d.ts +48 -0
- package/dist/v0.9/types/integrations/serbiaUtits.d.ts +40 -0
- package/dist/v0.9/types/integrations.d.ts +0 -12
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import IntegrationsBaseClient from "../../../integrationsBaseClient";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { NbsIpsQrCode, IPSQrCodeResponse, NBSSearchParams } from "../../../../types/integrations/serbiaUtils";
|
|
4
|
+
export default class NBS extends IntegrationsBaseClient {
|
|
5
|
+
nbsSearch(params: NBSSearchParams): Promise<AxiosResponse<any, any>>;
|
|
6
|
+
getNbsIpsQrCode(code: NbsIpsQrCode, size: number, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
7
|
+
validateNbsIpsQrCode(qrCodeString: string, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
8
|
+
services(method: string, endpoint: string, params?: any): Promise<AxiosResponse<any, any>>;
|
|
9
|
+
request(method: string, endpoint: string, params: any): Promise<AxiosResponse<any, any>>;
|
|
10
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
-
import {
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { GenerateIPSQrCodeRequest, IPSQrCodeResponse } from "../../types/integrations/serbiaUtits";
|
|
3
4
|
export default class SerbiaUtil extends IntegrationsBaseClient {
|
|
4
|
-
nbsSearch(params: any): Promise<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
nbsSearch(params: any): Promise<AxiosResponse<any, any>>;
|
|
6
|
+
getNbsIpsQrCode(code: GenerateIPSQrCodeRequest, size: number, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
7
|
+
validateNbsIpsQrCode(qrCodeString: string, lang?: string): Promise<AxiosResponse<IPSQrCodeResponse>>;
|
|
8
|
+
getReceiptFromUrl(url: string, source: string): Promise<AxiosResponse<any, any>>;
|
|
9
|
+
getContoList(): Promise<AxiosResponse<any, any>>;
|
|
10
|
+
services(method: string, endpoint: string, params?: any): Promise<AxiosResponse<any, any>>;
|
|
11
|
+
request(method: string, endpoint: string, params: any): Promise<AxiosResponse<any, any>>;
|
|
10
12
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import Invoicing from "./integrations/invoicing";
|
|
2
2
|
import DMS from "./integrations/dms";
|
|
3
|
-
import
|
|
3
|
+
import Mail from "./integrations/mail";
|
|
4
|
+
import MinFin from "./integrations/serbia/minfin";
|
|
4
5
|
import IntegrationsBaseClient from "./integrationsBaseClient";
|
|
5
6
|
import Payments from "./integrations/payments";
|
|
6
7
|
import Minimax from "./integrations/minimax";
|
|
8
|
+
import NBS from "./integrations/serbia/nbs";
|
|
7
9
|
export default class Integrations extends IntegrationsBaseClient {
|
|
8
10
|
private integrations;
|
|
9
11
|
constructor(options?: {
|
|
@@ -11,12 +13,13 @@ export default class Integrations extends IntegrationsBaseClient {
|
|
|
11
13
|
token?: string;
|
|
12
14
|
host?: string;
|
|
13
15
|
});
|
|
14
|
-
getSerbiaUtilities(): any;
|
|
15
16
|
getDMS(): DMS;
|
|
16
|
-
getVPFR(): VPFR;
|
|
17
17
|
getInvoicing(): Invoicing;
|
|
18
18
|
getPayments(): Payments;
|
|
19
19
|
getMinimax(): Minimax;
|
|
20
|
+
getMail(): Mail;
|
|
21
|
+
getNBS(): NBS;
|
|
22
|
+
getSerbiaMinFin(): MinFin;
|
|
20
23
|
isInstalled(id: string): Promise<boolean>;
|
|
21
24
|
getInterfaceOf(id: string): any;
|
|
22
25
|
}
|
|
@@ -3,7 +3,7 @@ import Functions from "./functions";
|
|
|
3
3
|
import APIUser from "./apiUser";
|
|
4
4
|
import Users from "./users";
|
|
5
5
|
import Apps from "./apps";
|
|
6
|
-
import Component
|
|
6
|
+
import Component from "./component";
|
|
7
7
|
import ComponentUtils from "./componentUtils";
|
|
8
8
|
import Thunder from "./thunder";
|
|
9
9
|
import Ratchet from "./ratchet";
|
|
@@ -22,7 +22,7 @@ export default class Platform extends PlatformBaseClient {
|
|
|
22
22
|
user(): Users;
|
|
23
23
|
app(appType: string): Apps;
|
|
24
24
|
forge(): Forge;
|
|
25
|
-
component(ref: string
|
|
25
|
+
component(ref: string): Component;
|
|
26
26
|
componentUtils(): ComponentUtils;
|
|
27
27
|
ratchet(): Ratchet;
|
|
28
28
|
sandbox(): Sandbox;
|
|
@@ -24,7 +24,7 @@ export default class Project extends PlatformBaseClient {
|
|
|
24
24
|
archive(): Promise<AxiosResponse<any>>;
|
|
25
25
|
/**
|
|
26
26
|
* Invite a user to the project
|
|
27
|
-
* @param
|
|
27
|
+
* @param emails Array of emails
|
|
28
28
|
* @param roles Array of role UUIDs
|
|
29
29
|
*/
|
|
30
30
|
invite(emails: string[], roles: string[]): Promise<AxiosResponse<any>>;
|
|
@@ -42,6 +42,11 @@ export default class Project extends PlatformBaseClient {
|
|
|
42
42
|
* @param uuid Invite UUID
|
|
43
43
|
*/
|
|
44
44
|
acceptInvite(uuid: string): Promise<AxiosResponse<any>>;
|
|
45
|
+
/**
|
|
46
|
+
* Revoke an invite
|
|
47
|
+
* @param uuid Invite UUID
|
|
48
|
+
*/
|
|
49
|
+
revokeInvite(uuid: string): Promise<AxiosResponse<any>>;
|
|
45
50
|
/**
|
|
46
51
|
* Register through an invite
|
|
47
52
|
* @param uuid Invite UUID
|