@justins-home/api-services 1.2.14 → 1.2.15
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.d.mts +25 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -369,6 +369,30 @@ declare const admin: {
|
|
|
369
369
|
role?: string | null;
|
|
370
370
|
};
|
|
371
371
|
}>;
|
|
372
|
+
fetchUserPlanOverview: (params: ApiPathParams<"fetchUserPlanOverviewAdmin">) => Promise<{
|
|
373
|
+
message?: string;
|
|
374
|
+
event?: string | null;
|
|
375
|
+
data?: {
|
|
376
|
+
plan?: {
|
|
377
|
+
key?: string;
|
|
378
|
+
name?: string;
|
|
379
|
+
user_type?: string;
|
|
380
|
+
is_active?: boolean;
|
|
381
|
+
capabilities?: unknown[];
|
|
382
|
+
entitlements?: unknown[];
|
|
383
|
+
verification_requirements?: string[];
|
|
384
|
+
};
|
|
385
|
+
capabilities?: {
|
|
386
|
+
create_listing?: {
|
|
387
|
+
name?: string;
|
|
388
|
+
description?: string;
|
|
389
|
+
allowed?: boolean;
|
|
390
|
+
reason?: string;
|
|
391
|
+
missing?: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}>;
|
|
372
396
|
fetchUserMaintenanceRequests: (params: ApiPathParams<"fetchUserMaintenanceRequestsAdmin">, query?: Expand<ApiRequest<"fetchUserMaintenanceRequestsAdmin">>) => Promise<{
|
|
373
397
|
message?: string;
|
|
374
398
|
event?: string | null;
|
|
@@ -2334,7 +2358,7 @@ declare const maintenance: {
|
|
|
2334
2358
|
status?: string;
|
|
2335
2359
|
priority?: string;
|
|
2336
2360
|
reported_at?: string;
|
|
2337
|
-
assigned_at?: string;
|
|
2361
|
+
assigned_at?: string | null;
|
|
2338
2362
|
completed_at?: string | null;
|
|
2339
2363
|
sla_deadline?: string;
|
|
2340
2364
|
created_at?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -369,6 +369,30 @@ declare const admin: {
|
|
|
369
369
|
role?: string | null;
|
|
370
370
|
};
|
|
371
371
|
}>;
|
|
372
|
+
fetchUserPlanOverview: (params: ApiPathParams<"fetchUserPlanOverviewAdmin">) => Promise<{
|
|
373
|
+
message?: string;
|
|
374
|
+
event?: string | null;
|
|
375
|
+
data?: {
|
|
376
|
+
plan?: {
|
|
377
|
+
key?: string;
|
|
378
|
+
name?: string;
|
|
379
|
+
user_type?: string;
|
|
380
|
+
is_active?: boolean;
|
|
381
|
+
capabilities?: unknown[];
|
|
382
|
+
entitlements?: unknown[];
|
|
383
|
+
verification_requirements?: string[];
|
|
384
|
+
};
|
|
385
|
+
capabilities?: {
|
|
386
|
+
create_listing?: {
|
|
387
|
+
name?: string;
|
|
388
|
+
description?: string;
|
|
389
|
+
allowed?: boolean;
|
|
390
|
+
reason?: string;
|
|
391
|
+
missing?: string[];
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
}>;
|
|
372
396
|
fetchUserMaintenanceRequests: (params: ApiPathParams<"fetchUserMaintenanceRequestsAdmin">, query?: Expand<ApiRequest<"fetchUserMaintenanceRequestsAdmin">>) => Promise<{
|
|
373
397
|
message?: string;
|
|
374
398
|
event?: string | null;
|
|
@@ -2334,7 +2358,7 @@ declare const maintenance: {
|
|
|
2334
2358
|
status?: string;
|
|
2335
2359
|
priority?: string;
|
|
2336
2360
|
reported_at?: string;
|
|
2337
|
-
assigned_at?: string;
|
|
2361
|
+
assigned_at?: string | null;
|
|
2338
2362
|
completed_at?: string | null;
|
|
2339
2363
|
sla_deadline?: string;
|
|
2340
2364
|
created_at?: string;
|
package/dist/index.js
CHANGED
|
@@ -138,6 +138,9 @@ var admin = {
|
|
|
138
138
|
fetchUser: (params) => {
|
|
139
139
|
return api.get("fetchUserAdmin", `/api/v1/portal/admin/users/fetch-one/${params.user_uid}`);
|
|
140
140
|
},
|
|
141
|
+
fetchUserPlanOverview: (params) => {
|
|
142
|
+
return api.get("fetchUserPlanOverviewAdmin", `/api/v1/portal/admin/users/${params.user_uid}/plan-overview`);
|
|
143
|
+
},
|
|
141
144
|
fetchUserMaintenanceRequests: (params, query) => {
|
|
142
145
|
return api.get("fetchUserMaintenanceRequestsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/maintenance-requests`, query);
|
|
143
146
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -91,6 +91,9 @@ var admin = {
|
|
|
91
91
|
fetchUser: (params) => {
|
|
92
92
|
return api.get("fetchUserAdmin", `/api/v1/portal/admin/users/fetch-one/${params.user_uid}`);
|
|
93
93
|
},
|
|
94
|
+
fetchUserPlanOverview: (params) => {
|
|
95
|
+
return api.get("fetchUserPlanOverviewAdmin", `/api/v1/portal/admin/users/${params.user_uid}/plan-overview`);
|
|
96
|
+
},
|
|
94
97
|
fetchUserMaintenanceRequests: (params, query) => {
|
|
95
98
|
return api.get("fetchUserMaintenanceRequestsAdmin", `/api/v1/portal/admin/users/${params.user_uid}/maintenance-requests`, query);
|
|
96
99
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justins-home/api-services",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@justins-home/http-client": "1.1.
|
|
20
|
-
"@justins-home/types": "1.1.
|
|
19
|
+
"@justins-home/http-client": "1.1.10",
|
|
20
|
+
"@justins-home/types": "1.1.10"
|
|
21
21
|
},
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|