@explorins/pers-sdk 1.1.3 → 1.2.1
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/analytics.cjs.map +1 -1
- package/dist/analytics.js.map +1 -1
- package/dist/auth-admin.cjs.map +1 -1
- package/dist/auth-admin.js.map +1 -1
- package/dist/business.cjs.map +1 -1
- package/dist/business.js.map +1 -1
- package/dist/campaign.cjs.map +1 -1
- package/dist/campaign.js.map +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js.map +1 -1
- package/dist/donation.cjs.map +1 -1
- package/dist/donation.js.map +1 -1
- package/dist/package.json +18 -37
- package/dist/payment.cjs.map +1 -1
- package/dist/payment.js.map +1 -1
- package/dist/redemption.cjs.map +1 -1
- package/dist/redemption.js.map +1 -1
- package/dist/tenant.cjs.map +1 -1
- package/dist/tenant.js.map +1 -1
- package/dist/token.cjs.map +1 -1
- package/dist/token.js.map +1 -1
- package/dist/transaction.cjs.map +1 -1
- package/dist/transaction.js.map +1 -1
- package/dist/user-status.cjs.map +1 -1
- package/dist/user-status.js.map +1 -1
- package/dist/user.cjs.map +1 -1
- package/dist/user.js.map +1 -1
- package/dist/web3-chain.cjs.map +1 -1
- package/dist/web3-chain.js.map +1 -1
- package/dist/web3.cjs.map +1 -1
- package/dist/web3.js.map +1 -1
- package/package.json +18 -37
- package/dist/analytics.d.ts +0 -28
- package/dist/auth-admin.d.ts +0 -26
- package/dist/business.d.ts +0 -34
- package/dist/campaign.d.ts +0 -44
- package/dist/core.d.ts +0 -13
- package/dist/donation.d.ts +0 -25
- package/dist/payment.d.ts +0 -36
- package/dist/redemption.d.ts +0 -35
- package/dist/tenant.d.ts +0 -34
- package/dist/token.d.ts +0 -13
- package/dist/transaction.d.ts +0 -38
- package/dist/user-status.d.ts +0 -28
- package/dist/user.d.ts +0 -36
- package/dist/web3-chain.d.ts +0 -17
- package/dist/web3.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@explorins/pers-sdk",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Platform-agnostic SDK for PERS (Phygital Experience Rewards System) - Production Defaults",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -16,109 +16,90 @@
|
|
|
16
16
|
"require": "./dist/index.cjs"
|
|
17
17
|
},
|
|
18
18
|
"./analytics": {
|
|
19
|
-
"types": "./dist/analytics.d.ts",
|
|
19
|
+
"types": "./dist/analytics/index.d.ts",
|
|
20
20
|
"import": "./dist/analytics.js",
|
|
21
21
|
"require": "./dist/analytics.cjs"
|
|
22
22
|
},
|
|
23
23
|
"./auth-admin": {
|
|
24
|
-
"types": "./dist/auth-admin.d.ts",
|
|
24
|
+
"types": "./dist/auth-admin/index.d.ts",
|
|
25
25
|
"import": "./dist/auth-admin.js",
|
|
26
26
|
"require": "./dist/auth-admin.cjs"
|
|
27
27
|
},
|
|
28
28
|
"./business": {
|
|
29
|
-
"types": "./dist/business.d.ts",
|
|
29
|
+
"types": "./dist/business/index.d.ts",
|
|
30
30
|
"import": "./dist/business.js",
|
|
31
31
|
"require": "./dist/business.cjs"
|
|
32
32
|
},
|
|
33
33
|
"./campaign": {
|
|
34
|
-
"types": "./dist/campaign.d.ts",
|
|
34
|
+
"types": "./dist/campaign/index.d.ts",
|
|
35
35
|
"import": "./dist/campaign.js",
|
|
36
36
|
"require": "./dist/campaign.cjs"
|
|
37
37
|
},
|
|
38
38
|
"./core": {
|
|
39
|
-
"types": "./dist/core.d.ts",
|
|
39
|
+
"types": "./dist/core/index.d.ts",
|
|
40
40
|
"import": "./dist/core.js",
|
|
41
41
|
"require": "./dist/core.cjs"
|
|
42
42
|
},
|
|
43
43
|
"./donation": {
|
|
44
|
-
"types": "./dist/donation.d.ts",
|
|
44
|
+
"types": "./dist/donation/index.d.ts",
|
|
45
45
|
"import": "./dist/donation.js",
|
|
46
46
|
"require": "./dist/donation.cjs"
|
|
47
47
|
},
|
|
48
48
|
"./payment": {
|
|
49
|
-
"types": "./dist/payment.d.ts",
|
|
49
|
+
"types": "./dist/payment/index.d.ts",
|
|
50
50
|
"import": "./dist/payment.js",
|
|
51
51
|
"require": "./dist/payment.cjs"
|
|
52
52
|
},
|
|
53
53
|
"./redemption": {
|
|
54
|
-
"types": "./dist/redemption.d.ts",
|
|
54
|
+
"types": "./dist/redemption/index.d.ts",
|
|
55
55
|
"import": "./dist/redemption.js",
|
|
56
56
|
"require": "./dist/redemption.cjs"
|
|
57
57
|
},
|
|
58
58
|
"./tenant": {
|
|
59
|
-
"types": "./dist/tenant.d.ts",
|
|
59
|
+
"types": "./dist/tenant/index.d.ts",
|
|
60
60
|
"import": "./dist/tenant.js",
|
|
61
61
|
"require": "./dist/tenant.cjs"
|
|
62
62
|
},
|
|
63
63
|
"./token": {
|
|
64
|
-
"types": "./dist/token.d.ts",
|
|
64
|
+
"types": "./dist/token/index.d.ts",
|
|
65
65
|
"import": "./dist/token.js",
|
|
66
66
|
"require": "./dist/token.cjs"
|
|
67
67
|
},
|
|
68
68
|
"./transaction": {
|
|
69
|
-
"types": "./dist/transaction.d.ts",
|
|
69
|
+
"types": "./dist/transaction/index.d.ts",
|
|
70
70
|
"import": "./dist/transaction.js",
|
|
71
71
|
"require": "./dist/transaction.cjs"
|
|
72
72
|
},
|
|
73
73
|
"./user": {
|
|
74
|
-
"types": "./dist/user.d.ts",
|
|
74
|
+
"types": "./dist/user/index.d.ts",
|
|
75
75
|
"import": "./dist/user.js",
|
|
76
76
|
"require": "./dist/user.cjs"
|
|
77
77
|
},
|
|
78
78
|
"./user-status": {
|
|
79
|
-
"types": "./dist/user-status.d.ts",
|
|
79
|
+
"types": "./dist/user-status/index.d.ts",
|
|
80
80
|
"import": "./dist/user-status.js",
|
|
81
81
|
"require": "./dist/user-status.cjs"
|
|
82
82
|
},
|
|
83
83
|
"./web3-chain": {
|
|
84
|
-
"types": "./dist/web3-chain.d.ts",
|
|
84
|
+
"types": "./dist/web3-chain/index.d.ts",
|
|
85
85
|
"import": "./dist/web3-chain.js",
|
|
86
86
|
"require": "./dist/web3-chain.cjs"
|
|
87
87
|
},
|
|
88
88
|
"./web3": {
|
|
89
|
-
"types": "./dist/web3.d.ts",
|
|
89
|
+
"types": "./dist/web3/index.d.ts",
|
|
90
90
|
"import": "./dist/web3.js",
|
|
91
91
|
"require": "./dist/web3.cjs"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
"typesVersions": {
|
|
95
|
-
"*": {
|
|
96
|
-
"analytics": ["./dist/analytics.d.ts"],
|
|
97
|
-
"auth-admin": ["./dist/auth-admin.d.ts"],
|
|
98
|
-
"business": ["./dist/business.d.ts"],
|
|
99
|
-
"campaign": ["./dist/campaign.d.ts"],
|
|
100
|
-
"core": ["./dist/core.d.ts"],
|
|
101
|
-
"donation": ["./dist/donation.d.ts"],
|
|
102
|
-
"payment": ["./dist/payment.d.ts"],
|
|
103
|
-
"redemption": ["./dist/redemption.d.ts"],
|
|
104
|
-
"tenant": ["./dist/tenant.d.ts"],
|
|
105
|
-
"token": ["./dist/token.d.ts"],
|
|
106
|
-
"transaction": ["./dist/transaction.d.ts"],
|
|
107
|
-
"user": ["./dist/user.d.ts"],
|
|
108
|
-
"user-status": ["./dist/user-status.d.ts"],
|
|
109
|
-
"web3-chain": ["./dist/web3-chain.d.ts"],
|
|
110
|
-
"web3": ["./dist/web3.d.ts"]
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
94
|
"scripts": {
|
|
114
|
-
"build": "rollup -c
|
|
95
|
+
"build": "rollup -c",
|
|
115
96
|
"build:watch": "rollup -c --watch",
|
|
116
97
|
"clean": "rimraf dist",
|
|
117
98
|
"test": "jest",
|
|
118
99
|
"test:watch": "jest --watch",
|
|
119
100
|
"lint": "eslint src/**/*.ts",
|
|
120
101
|
"prepublishOnly": "npm run clean && npm run build",
|
|
121
|
-
"publish": "npm publish"
|
|
102
|
+
"publish-version": "npm publish"
|
|
122
103
|
},
|
|
123
104
|
"devDependencies": {
|
|
124
105
|
"@rollup/plugin-typescript": "^11.1.6",
|
package/dist/analytics.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-analytics
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Analytics Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles analytics operations and data aggregation
|
|
6
|
-
*/
|
|
7
|
-
export { AnalyticsApi } from './analytics/api/analytics-api';
|
|
8
|
-
export { AnalyticsService } from './analytics/services/analytics-service';
|
|
9
|
-
export * from './analytics/models';
|
|
10
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
11
|
-
export * from './analytics/models';
|
|
12
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
13
|
-
import { AnalyticsApi } from './analytics/api/analytics-api';
|
|
14
|
-
import { TransactionAnalyticsRequestDTO } from './analytics/models';
|
|
15
|
-
import { AnalyticsService } from './analytics/services/analytics-service';
|
|
16
|
-
/**
|
|
17
|
-
* Create a complete Analytics SDK instance
|
|
18
|
-
*
|
|
19
|
-
* @param apiClient - Configured PERS API client
|
|
20
|
-
* @returns Analytics SDK with flattened structure for better DX
|
|
21
|
-
*/
|
|
22
|
-
export declare function createAnalyticsSDK(apiClient: PersApiClient): {
|
|
23
|
-
getTransactionAnalytics: (request: TransactionAnalyticsRequestDTO) => Promise<import("./models").TransactionAnalyticsResponseDTO>;
|
|
24
|
-
api: AnalyticsApi;
|
|
25
|
-
service: AnalyticsService;
|
|
26
|
-
};
|
|
27
|
-
export type AnalyticsSDK = ReturnType<typeof createAnalyticsSDK>;
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/auth-admin.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-auth-admin
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Auth Admin Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles authentication and authorization admin operations
|
|
6
|
-
*/
|
|
7
|
-
export { AuthAdminApi } from './auth-admin/api/auth-admin-api';
|
|
8
|
-
export { AuthAdminService } from './auth-admin/services/auth-admin-service';
|
|
9
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
10
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
11
|
-
import { AuthAdminApi } from './auth-admin/api/auth-admin-api';
|
|
12
|
-
import { AuthAdminService } from './auth-admin/services/auth-admin-service';
|
|
13
|
-
/**
|
|
14
|
-
* Create a complete Auth Admin SDK instance
|
|
15
|
-
*
|
|
16
|
-
* @param apiClient - Configured PERS API client
|
|
17
|
-
* @returns Auth Admin SDK with flattened structure for better DX
|
|
18
|
-
*/
|
|
19
|
-
export declare function createAuthAdminSDK(apiClient: PersApiClient): {
|
|
20
|
-
loginTenantAdmin: (jwt: string) => Promise<SessionAuthResponseDTO>;
|
|
21
|
-
refreshAccessToken: (refreshToken: string) => Promise<SessionAuthResponseDTO>;
|
|
22
|
-
api: AuthAdminApi;
|
|
23
|
-
service: AuthAdminService;
|
|
24
|
-
};
|
|
25
|
-
export type AuthAdminSDK = ReturnType<typeof createAuthAdminSDK>;
|
|
26
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/business.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-business
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Business Domain SDK for PERS ecosystem
|
|
5
|
-
* Focuses on non-admin business operations
|
|
6
|
-
*/
|
|
7
|
-
export { BusinessApi } from './business/api/business-api';
|
|
8
|
-
export { BusinessService } from './business/services/business-service';
|
|
9
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
10
|
-
import { BusinessUpdateRequestDTO } from './shared/interfaces/pers-shared-lib.interfaces';
|
|
11
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
12
|
-
import { BusinessApi } from './business/api/business-api';
|
|
13
|
-
import { BusinessService } from './business/services/business-service';
|
|
14
|
-
/**
|
|
15
|
-
* Create a complete Business SDK instance
|
|
16
|
-
*
|
|
17
|
-
* @param apiClient - Configured PERS API client
|
|
18
|
-
* @returns Business SDK with flattened structure for better DX
|
|
19
|
-
*/
|
|
20
|
-
export declare function createBusinessSDK(apiClient: PersApiClient): {
|
|
21
|
-
getActiveBusinesses: () => Promise<BusinessDTO[]>;
|
|
22
|
-
getAllBusinessTypes: () => Promise<BusinessTypeDTO[]>;
|
|
23
|
-
getBusinessById: (businessId: string) => Promise<BusinessDTO>;
|
|
24
|
-
getBusinessByAccount: (accountAddress: string) => Promise<BusinessDTO>;
|
|
25
|
-
getBusinessesByType: (typeId: string) => Promise<BusinessDTO[]>;
|
|
26
|
-
getAllBusinesses: () => Promise<BusinessDTO[]>;
|
|
27
|
-
createBusinessByDisplayName: (displayName: string) => Promise<BusinessDTO>;
|
|
28
|
-
updateBusiness: (id: string, businessData: BusinessUpdateRequestDTO) => Promise<BusinessDTO>;
|
|
29
|
-
toggleBusinessActive: (id: string, isActive: boolean) => Promise<BusinessDTO>;
|
|
30
|
-
api: BusinessApi;
|
|
31
|
-
service: BusinessService;
|
|
32
|
-
};
|
|
33
|
-
export type BusinessSDK = ReturnType<typeof createBusinessSDK>;
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/campaign.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-campaign
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Campaign Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles campaign operations across different authorization levels
|
|
6
|
-
*/
|
|
7
|
-
export { CampaignApi } from './campaign/api/campaign-api';
|
|
8
|
-
export { CampaignService } from './campaign/services/campaign-service';
|
|
9
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
10
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
11
|
-
import { CampaignApi } from './campaign/api/campaign-api';
|
|
12
|
-
import { CampaignService } from './campaign/services/campaign-service';
|
|
13
|
-
import { CampaignClaimRequestDTO, CampaignCreateRequestDTO, TokenUnitCreateRequestDTO, CampaignBusinessEngagementCreateRequestDTO } from './shared/interfaces/pers-shared-lib.interfaces';
|
|
14
|
-
/**
|
|
15
|
-
* Create a complete Campaign SDK instance
|
|
16
|
-
*
|
|
17
|
-
* @param apiClient - Configured PERS API client
|
|
18
|
-
* @returns Campaign SDK with flattened structure for better DX
|
|
19
|
-
*/
|
|
20
|
-
export declare function createCampaignSDK(apiClient: PersApiClient): {
|
|
21
|
-
getActiveCampaigns: () => Promise<CampaignDTO[]>;
|
|
22
|
-
getCampaignById: (id: string) => Promise<CampaignDTO>;
|
|
23
|
-
claimCampaign: (request: CampaignClaimRequestDTO) => Promise<CampaignUserClaimDTO>;
|
|
24
|
-
getClaimsForLoggedUser: () => Promise<CampaignUserClaimDTO[]>;
|
|
25
|
-
getCampaigns: (active?: boolean) => Promise<CampaignDTO[]>;
|
|
26
|
-
getCampaignTriggers: () => Promise<CampaignTriggerDTO[]>;
|
|
27
|
-
toggleCampaignActive: (campaignId: string) => Promise<CampaignDTO>;
|
|
28
|
-
toggleCampaignTestnet: (campaignId: string) => Promise<CampaignDTO>;
|
|
29
|
-
createCampaign: (campaign: CampaignCreateRequestDTO) => Promise<CampaignDTO>;
|
|
30
|
-
setCampaignTrigger: (campaignId: string, triggerId: string) => Promise<CampaignDTO>;
|
|
31
|
-
updateCampaign: (campaignId: string, campaign: CampaignCreateRequestDTO) => Promise<CampaignDTO>;
|
|
32
|
-
createCampaignTokenUnit: (campaignId: string, campaignTokenUnit: TokenUnitCreateRequestDTO) => Promise<CampaignDTO>;
|
|
33
|
-
deleteCampaignTokenUnit: (campaignId: string, campaignTokenUnitId: string) => Promise<CampaignDTO>;
|
|
34
|
-
addBusinessEngagementToCampaign: (campaignId: string, campaignBusinessEngagement: CampaignBusinessEngagementCreateRequestDTO) => Promise<CampaignDTO>;
|
|
35
|
-
updateCampaignBusinessEngagement: (campaignId: string, businessEngagementId: string, campaignBusinessEngagement: CampaignBusinessEngagementCreateRequestDTO) => Promise<CampaignDTO>;
|
|
36
|
-
deleteCampaignBusinessEngagement: (campaignId: string, businessEngagementId: string) => Promise<CampaignDTO>;
|
|
37
|
-
getCampaignClaims: () => Promise<CampaignUserClaimDTO[]>;
|
|
38
|
-
getCampaignClaimsByUserId: (userId: string) => Promise<CampaignUserClaimDTO[]>;
|
|
39
|
-
getCampaignClaimsByBusinessId: (businessId: string) => Promise<CampaignUserClaimDTO[]>;
|
|
40
|
-
api: CampaignApi;
|
|
41
|
-
service: CampaignService;
|
|
42
|
-
};
|
|
43
|
-
export type CampaignSDK = ReturnType<typeof createCampaignSDK>;
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/core.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk/core - Core SDK Entry Point
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic PERS API client and core functionality
|
|
5
|
-
*/
|
|
6
|
-
export * from './core/pers-api-client';
|
|
7
|
-
export * from './core/pers-config';
|
|
8
|
-
export type { PersEnvironment, PersApiVersion } from './core/pers-config';
|
|
9
|
-
export { PersAuthProvider, SimpleAuthConfig, createAuthProvider, } from './core/auth/auth-provider.interface';
|
|
10
|
-
export type { PersRequestOptions as AuthRequestOptions } from './core/auth/auth-provider.interface';
|
|
11
|
-
export * from './core/abstractions/http-client';
|
|
12
|
-
export { PersSDK, createPersSDK } from './core/pers-sdk';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/donation.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-donation
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Donation Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles donation type retrieval for purchase flow integration
|
|
6
|
-
*/
|
|
7
|
-
export { DonationApi } from './donation/api/donation-api';
|
|
8
|
-
export { DonationService } from './donation/services/donation-service';
|
|
9
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
10
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
11
|
-
import { DonationApi } from './donation/api/donation-api';
|
|
12
|
-
import { DonationService } from './donation/services/donation-service';
|
|
13
|
-
/**
|
|
14
|
-
* Create a complete Donation SDK instance
|
|
15
|
-
*
|
|
16
|
-
* @param apiClient - Configured PERS API client
|
|
17
|
-
* @returns Donation SDK with flattened structure for better DX
|
|
18
|
-
*/
|
|
19
|
-
export declare function createDonationSDK(apiClient: PersApiClient): {
|
|
20
|
-
getAllDonationTypes: () => Promise<DonationTypeDTO[]>;
|
|
21
|
-
api: DonationApi;
|
|
22
|
-
service: DonationService;
|
|
23
|
-
};
|
|
24
|
-
export type DonationSDK = ReturnType<typeof createDonationSDK>;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/payment.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-payment
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Payment Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles payment intents, purchases, and purchase tokens
|
|
6
|
-
*
|
|
7
|
-
* Note: Payment provider integrations (Stripe, etc.) are kept separate
|
|
8
|
-
* in the infrastructure layer to maintain platform-agnostic principles.
|
|
9
|
-
*/
|
|
10
|
-
export { PaymentApi } from './payment/api/payment-api';
|
|
11
|
-
export { PaymentService } from './payment/services/payment-service';
|
|
12
|
-
export * from './payment/models';
|
|
13
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
14
|
-
export * from './payment/models';
|
|
15
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
16
|
-
import { PaymentApi } from './payment/api/payment-api';
|
|
17
|
-
import { PurchaseCurrency } from './payment/models';
|
|
18
|
-
import { PaymentService } from './payment/services/payment-service';
|
|
19
|
-
/**
|
|
20
|
-
* Create a complete Payment SDK instance
|
|
21
|
-
*
|
|
22
|
-
* @param apiClient - Configured PERS API client
|
|
23
|
-
* @returns Payment SDK with flattened structure for better DX
|
|
24
|
-
*/
|
|
25
|
-
export declare function createPaymentSDK(apiClient: PersApiClient): {
|
|
26
|
-
getActivePurchaseTokens: (active?: boolean) => Promise<PurchaseTokenDTO[]>;
|
|
27
|
-
createPaymentIntent: (amount: number, currency: PurchaseCurrency, receiptEmail: string, description: string) => Promise<PaymentIntentDTO>;
|
|
28
|
-
updatePaymentIntent: (paymentIntentId: string, amount: number, currency: PurchaseCurrency, receiptEmail: string, description: string) => Promise<PaymentIntentDTO>;
|
|
29
|
-
cancelPaymentIntent: (paymentIntentId: string) => Promise<PaymentIntentDTO>;
|
|
30
|
-
createPurchase: (paymentIntentId: string, amount: number, purchaseTokenId?: string, donationTypeId?: number, donationAccountAddress?: string) => Promise<PurchaseDTO>;
|
|
31
|
-
getAllUserPurchases: () => Promise<PurchaseDTO[]>;
|
|
32
|
-
api: PaymentApi;
|
|
33
|
-
service: PaymentService;
|
|
34
|
-
};
|
|
35
|
-
export type PaymentSDK = ReturnType<typeof createPaymentSDK>;
|
|
36
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/redemption.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-redemption
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Redemption Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles redemption operations across different authorization levels
|
|
6
|
-
*/
|
|
7
|
-
export { RedemptionApi } from './redemption/api/redemption-api';
|
|
8
|
-
export { RedemptionService } from './redemption/services/redemption-service';
|
|
9
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
10
|
-
import { RedemptionCreateRequestDTO, TokenUnitCreateRequestDTO } from './shared/interfaces/pers-shared-lib.interfaces';
|
|
11
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
12
|
-
import { RedemptionApi } from './redemption/api/redemption-api';
|
|
13
|
-
import { RedemptionService } from './redemption/services/redemption-service';
|
|
14
|
-
/**
|
|
15
|
-
* Create a complete Redemption SDK instance
|
|
16
|
-
*
|
|
17
|
-
* @param apiClient - Configured PERS API client
|
|
18
|
-
* @returns Redemption SDK with flattened structure for better DX
|
|
19
|
-
*/
|
|
20
|
-
export declare function createRedemptionSDK(apiClient: PersApiClient): {
|
|
21
|
-
getActiveRedemptions: () => Promise<RedemptionDTO[]>;
|
|
22
|
-
getRedemptionTypes: () => Promise<RedemptionTypeDTO[]>;
|
|
23
|
-
redeemRedemption: (redemptionId: string) => Promise<RedemptionUserRedeemDetailedDTO>;
|
|
24
|
-
getUserRedeems: () => Promise<RedemptionUserRedeemDTO[]>;
|
|
25
|
-
getRedemptionsAsAdmin: (active?: boolean) => Promise<RedemptionDTO[]>;
|
|
26
|
-
createRedemption: (redemption: RedemptionCreateRequestDTO) => Promise<RedemptionDTO>;
|
|
27
|
-
updateRedemption: (id: string, redemptionCreateRequest: RedemptionCreateRequestDTO) => Promise<RedemptionDTO>;
|
|
28
|
-
toggleRedemptionActive: (redemptionId: string) => Promise<RedemptionDTO>;
|
|
29
|
-
createRedemptionTokenUnit: (redemptionId: string, redemptionTokenUnit: TokenUnitCreateRequestDTO) => Promise<RedemptionDTO>;
|
|
30
|
-
deleteRedemptionTokenUnit: (redemptionId: string, redemptionTokenUnitId: string) => Promise<RedemptionDTO>;
|
|
31
|
-
api: RedemptionApi;
|
|
32
|
-
service: RedemptionService;
|
|
33
|
-
};
|
|
34
|
-
export type RedemptionSDK = ReturnType<typeof createRedemptionSDK>;
|
|
35
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/tenant.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-tenant
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Tenant Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles tenant management and admin operations for multi-tenant architecture
|
|
6
|
-
*/
|
|
7
|
-
export { TenantApi } from './tenant/api/tenant-api';
|
|
8
|
-
export { TenantService } from './tenant/services/tenant-service';
|
|
9
|
-
export * from './tenant/models';
|
|
10
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
11
|
-
export * from './tenant/models';
|
|
12
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
13
|
-
import { TenantApi } from './tenant/api/tenant-api';
|
|
14
|
-
import { TenantService } from './tenant/services/tenant-service';
|
|
15
|
-
import { TenantPublicDTO, AdminCreateRequestDTO } from './tenant/models';
|
|
16
|
-
/**
|
|
17
|
-
* Create a complete Tenant SDK instance
|
|
18
|
-
*
|
|
19
|
-
* @param apiClient - Configured PERS API client
|
|
20
|
-
* @returns Tenant SDK with flattened structure for better DX
|
|
21
|
-
*/
|
|
22
|
-
export declare function createTenantSDK(apiClient: PersApiClient): {
|
|
23
|
-
getRemoteTenant: () => Promise<TenantPublicDTO>;
|
|
24
|
-
getRemoteLoginToken: () => Promise<string>;
|
|
25
|
-
getRemoteClientConfig: () => Promise<TenantClientConfigDTO>;
|
|
26
|
-
updateRemoteTenant: (tenantData: TenantPublicDTO) => Promise<TenantPublicDTO>;
|
|
27
|
-
getAdmins: () => Promise<AdminDTO[]>;
|
|
28
|
-
postAdmin: (adminData: AdminCreateRequestDTO) => Promise<AdminDTO>;
|
|
29
|
-
putAdmin: (adminId: string, adminData: AdminCreateRequestDTO) => Promise<AdminDTO>;
|
|
30
|
-
api: TenantApi;
|
|
31
|
-
service: TenantService;
|
|
32
|
-
};
|
|
33
|
-
export type TenantSDK = ReturnType<typeof createTenantSDK>;
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/token.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-token
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Token Domain SDK for PERS ecosystem
|
|
5
|
-
* Modern class-based approach for optimal performance and developer experience
|
|
6
|
-
*/
|
|
7
|
-
export { TokenSDK } from './token-sdk';
|
|
8
|
-
export { TokenApi } from './token/api/token-api';
|
|
9
|
-
export { TokenService } from './token/services/token-service';
|
|
10
|
-
export * from './token/models';
|
|
11
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
12
|
-
export { BaseTokenService } from './base/base-token-service';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/transaction.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-transaction
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic Transaction Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles transaction operations across different authorization levels
|
|
6
|
-
*/
|
|
7
|
-
export { TransactionApi } from './transaction/api/transaction-api';
|
|
8
|
-
export { TransactionService } from './transaction/services/transaction-service';
|
|
9
|
-
export * from './transaction/models';
|
|
10
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
11
|
-
export * from './transaction/models';
|
|
12
|
-
import { ClientTransactionRequestDTO, TransactionRequestDTO } from './shared/interfaces/pers-shared-lib.interfaces';
|
|
13
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
14
|
-
import { TransactionApi } from './transaction/api/transaction-api';
|
|
15
|
-
import { TransactionService } from './transaction/services/transaction-service';
|
|
16
|
-
import { TransactionPaginationParams, UserBurnTokenRequestDTO } from './transaction/models';
|
|
17
|
-
/**
|
|
18
|
-
* Create a complete Transaction SDK instance
|
|
19
|
-
*
|
|
20
|
-
* @param apiClient - Configured PERS API client
|
|
21
|
-
* @returns Transaction SDK with flattened structure for better DX
|
|
22
|
-
*/
|
|
23
|
-
export declare function createTransactionSDK(apiClient: PersApiClient): {
|
|
24
|
-
getTransactionById: (transactionId: string) => Promise<TransactionDTO>;
|
|
25
|
-
createAuthTransaction: (request: TransactionRequestDTO) => Promise<TransactionDTO>;
|
|
26
|
-
getUserTransactionHistory: (type: string) => Promise<TransactionDTO[]>;
|
|
27
|
-
prepareClientSignedTransaction: (request: ClientTransactionRequestDTO) => Promise<ClientTransactionRequestResponseDto>;
|
|
28
|
-
burnUserTokens: (request: UserBurnTokenRequestDTO) => Promise<TransactionDTO>;
|
|
29
|
-
createBusinessTransaction: (request: TransactionRequestDTO) => Promise<TransactionDTO>;
|
|
30
|
-
createAdminTransaction: (request: TransactionRequestDTO) => Promise<TransactionDTO>;
|
|
31
|
-
getTenantTransactions: () => Promise<TransactionDTO[]>;
|
|
32
|
-
getPaginatedTransactions: (params: TransactionPaginationParams) => Promise<import("./models").TransactionPaginationResponse>;
|
|
33
|
-
exportTransactionsCSV: () => Promise<Blob>;
|
|
34
|
-
api: TransactionApi;
|
|
35
|
-
service: TransactionService;
|
|
36
|
-
};
|
|
37
|
-
export type TransactionSDK = ReturnType<typeof createTransactionSDK>;
|
|
38
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/user-status.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-user-status
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic User Status Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles user status management and type operations
|
|
6
|
-
*/
|
|
7
|
-
export { UserStatusApi } from './user-status/api/user-status-api';
|
|
8
|
-
export { UserStatusService } from './user-status/services/user-status-service';
|
|
9
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
10
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
11
|
-
import { UserStatusApi } from './user-status/api/user-status-api';
|
|
12
|
-
import { UserStatusService } from './user-status/services/user-status-service';
|
|
13
|
-
import { UserStatusTypeDTO } from './shared/interfaces/pers-shared-lib.interfaces';
|
|
14
|
-
/**
|
|
15
|
-
* Create a complete User Status SDK instance
|
|
16
|
-
*
|
|
17
|
-
* @param apiClient - Configured PERS API client
|
|
18
|
-
* @returns User Status SDK with flattened structure for better DX
|
|
19
|
-
*/
|
|
20
|
-
export declare function createUserStatusSDK(apiClient: PersApiClient): {
|
|
21
|
-
getRemoteUserStatusTypes: () => Promise<UserStatusTypeDTO[]>;
|
|
22
|
-
getRemoteEarnedUserStatus: () => Promise<UserStatusTypeDTO[]>;
|
|
23
|
-
createUserStatusType: (userStatusType: UserStatusTypeDTO) => Promise<UserStatusTypeDTO>;
|
|
24
|
-
api: UserStatusApi;
|
|
25
|
-
service: UserStatusService;
|
|
26
|
-
};
|
|
27
|
-
export type UserStatusSDK = ReturnType<typeof createUserStatusSDK>;
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/user.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @explorins/pers-sdk-user
|
|
3
|
-
*
|
|
4
|
-
* Platform-agnostic User Domain SDK for PERS ecosystem
|
|
5
|
-
* Handles user management, profiles, and authentication operations
|
|
6
|
-
*/
|
|
7
|
-
export { UserApi } from './user/api/user-api';
|
|
8
|
-
export { UserService } from './user/services/user-service';
|
|
9
|
-
export * from './user/models';
|
|
10
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
11
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
12
|
-
import { UserApi } from './user/api/user-api';
|
|
13
|
-
import { UserService } from './user/services/user-service';
|
|
14
|
-
import { UserDTO, UserCreateRequestDTO } from './shared/interfaces/pers-shared-lib.interfaces';
|
|
15
|
-
/**
|
|
16
|
-
* Create a complete User SDK instance
|
|
17
|
-
*
|
|
18
|
-
* @param apiClient - Configured PERS API client
|
|
19
|
-
* @returns User SDK with flattened structure for better DX
|
|
20
|
-
*/
|
|
21
|
-
export declare function createUserSDK(apiClient: PersApiClient): {
|
|
22
|
-
getAllUsersPublicProfiles: (filter?: {
|
|
23
|
-
key: string;
|
|
24
|
-
value: string;
|
|
25
|
-
} | null) => Promise<import("./models").UserPublicProfileDTO[]>;
|
|
26
|
-
getRemoteUser: () => Promise<UserDTO>;
|
|
27
|
-
updateRemoteUser: (updateRequest: UserCreateRequestDTO) => Promise<UserDTO>;
|
|
28
|
-
getAllRemoteUsers: () => Promise<UserDTO[]>;
|
|
29
|
-
updateUserAsAdmin: (id: string, userData: UserCreateRequestDTO) => Promise<UserDTO>;
|
|
30
|
-
toggleUserActiveStatusByUser: (user: UserDTO) => Promise<UserDTO>;
|
|
31
|
-
getUserByUniqueIdentifier: (id: string) => Promise<UserDTO>;
|
|
32
|
-
api: UserApi;
|
|
33
|
-
service: UserService;
|
|
34
|
-
};
|
|
35
|
-
export type UserSDK = ReturnType<typeof createUserSDK>;
|
|
36
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/web3-chain.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
2
|
-
import { Web3ChainApi } from './web3-chain/api/web3-chain-api';
|
|
3
|
-
import { Web3ProviderService } from './web3-chain/services/provider.service';
|
|
4
|
-
import { Web3ChainService } from './web3-chain/services/web3-chain-service';
|
|
5
|
-
export declare function createWeb3ChainSDK(apiClient: PersApiClient, providerService: Web3ProviderService): {
|
|
6
|
-
getChainDataById: (chainId: number) => Promise<import("./models").ChainData | null>;
|
|
7
|
-
getWeb3ByChainId: (chainId: number) => Promise<import("web3").default<import("web3-eth").RegisteredSubscription>>;
|
|
8
|
-
api: Web3ChainApi;
|
|
9
|
-
service: Web3ChainService;
|
|
10
|
-
};
|
|
11
|
-
export { Web3ChainApi } from './web3-chain/api/web3-chain-api';
|
|
12
|
-
export { Web3ChainService } from './web3-chain/services/web3-chain-service';
|
|
13
|
-
export { Web3ProviderService } from './web3-chain/services/provider.service';
|
|
14
|
-
export * from './web3-chain/models';
|
|
15
|
-
export type { ChainData } from './web3-chain/models';
|
|
16
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/web3.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PersApiClient } from './core/pers-api-client';
|
|
2
|
-
import { Web3Api } from './web3/api/web3-api';
|
|
3
|
-
import { Web3Service } from './web3/services/web3-service';
|
|
4
|
-
import { ERC1155CollectionRequest, ERC20BalanceRequest, ERC721CollectionRequest, ERC721CollectionResponse, Web3BalanceResponse, Web3TokenListResponse } from './web3/models';
|
|
5
|
-
import { Web3ProviderService } from './web3-chain/services/provider.service';
|
|
6
|
-
export declare function createWeb3SDK(apiClient: PersApiClient, web3ProviderService: Web3ProviderService): {
|
|
7
|
-
getCreditsBalance: (request: ERC20BalanceRequest) => Promise<Web3BalanceResponse>;
|
|
8
|
-
getRewardsCollection: (request: ERC1155CollectionRequest) => Promise<Web3TokenListResponse>;
|
|
9
|
-
getStampsCollection: (request: ERC721CollectionRequest) => Promise<ERC721CollectionResponse>;
|
|
10
|
-
api: Web3Api;
|
|
11
|
-
service: Web3Service;
|
|
12
|
-
};
|
|
13
|
-
export * from './web3/models';
|
|
14
|
-
export type { ERC20BalanceRequest, ERC1155CollectionRequest, ERC721CollectionRequest, ERC721CollectionResponse, NFTItem } from './web3/models';
|
|
15
|
-
export * from './shared/interfaces/pers-shared-lib.interfaces';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|