@burdenoff/sdk-libs 2026.501.6
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 +4 -0
- package/README.md +52 -0
- package/dist/chunk-NEREAHJ6.js +1 -0
- package/dist/chunk-YGVAZ3D7.js +2 -0
- package/dist/core/index.cjs +2 -0
- package/dist/core/index.d.cts +52 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/module-JDbvil5h.d.cts +194 -0
- package/dist/module-JDbvil5h.d.ts +194 -0
- package/dist/modules/auth/index.cjs +71 -0
- package/dist/modules/auth/index.d.cts +94 -0
- package/dist/modules/auth/index.d.ts +94 -0
- package/dist/modules/auth/index.js +71 -0
- package/dist/modules/billing/index.cjs +203 -0
- package/dist/modules/billing/index.d.cts +377 -0
- package/dist/modules/billing/index.d.ts +377 -0
- package/dist/modules/billing/index.js +203 -0
- package/dist/modules/channels/index.cjs +108 -0
- package/dist/modules/channels/index.d.cts +146 -0
- package/dist/modules/channels/index.d.ts +146 -0
- package/dist/modules/channels/index.js +108 -0
- package/dist/modules/conversations/index.cjs +61 -0
- package/dist/modules/conversations/index.d.cts +112 -0
- package/dist/modules/conversations/index.d.ts +112 -0
- package/dist/modules/conversations/index.js +61 -0
- package/dist/modules/devportal/index.cjs +216 -0
- package/dist/modules/devportal/index.d.cts +303 -0
- package/dist/modules/devportal/index.d.ts +303 -0
- package/dist/modules/devportal/index.js +216 -0
- package/dist/modules/export/index.cjs +61 -0
- package/dist/modules/export/index.d.cts +169 -0
- package/dist/modules/export/index.d.ts +169 -0
- package/dist/modules/export/index.js +61 -0
- package/dist/modules/files/index.cjs +51 -0
- package/dist/modules/files/index.d.cts +102 -0
- package/dist/modules/files/index.d.ts +102 -0
- package/dist/modules/files/index.js +51 -0
- package/dist/modules/groups/index.cjs +80 -0
- package/dist/modules/groups/index.d.cts +168 -0
- package/dist/modules/groups/index.d.ts +168 -0
- package/dist/modules/groups/index.js +80 -0
- package/dist/modules/health/index.cjs +5 -0
- package/dist/modules/health/index.d.cts +18 -0
- package/dist/modules/health/index.d.ts +18 -0
- package/dist/modules/health/index.js +5 -0
- package/dist/modules/integrations/index.cjs +65 -0
- package/dist/modules/integrations/index.d.cts +120 -0
- package/dist/modules/integrations/index.d.ts +120 -0
- package/dist/modules/integrations/index.js +65 -0
- package/dist/modules/notifications/index.cjs +53 -0
- package/dist/modules/notifications/index.d.cts +140 -0
- package/dist/modules/notifications/index.d.ts +140 -0
- package/dist/modules/notifications/index.js +53 -0
- package/dist/modules/organizations/index.cjs +72 -0
- package/dist/modules/organizations/index.d.cts +88 -0
- package/dist/modules/organizations/index.d.ts +88 -0
- package/dist/modules/organizations/index.js +72 -0
- package/dist/modules/products/index.cjs +149 -0
- package/dist/modules/products/index.d.cts +361 -0
- package/dist/modules/products/index.d.ts +361 -0
- package/dist/modules/products/index.js +149 -0
- package/dist/modules/rbac/index.cjs +55 -0
- package/dist/modules/rbac/index.d.cts +100 -0
- package/dist/modules/rbac/index.d.ts +100 -0
- package/dist/modules/rbac/index.js +55 -0
- package/dist/modules/scheduler/index.cjs +61 -0
- package/dist/modules/scheduler/index.d.cts +121 -0
- package/dist/modules/scheduler/index.d.ts +121 -0
- package/dist/modules/scheduler/index.js +61 -0
- package/dist/modules/security/index.cjs +61 -0
- package/dist/modules/security/index.d.cts +110 -0
- package/dist/modules/security/index.d.ts +110 -0
- package/dist/modules/security/index.js +61 -0
- package/dist/modules/store/index.cjs +82 -0
- package/dist/modules/store/index.d.cts +139 -0
- package/dist/modules/store/index.d.ts +139 -0
- package/dist/modules/store/index.js +82 -0
- package/dist/modules/support/index.cjs +56 -0
- package/dist/modules/support/index.d.cts +147 -0
- package/dist/modules/support/index.d.ts +147 -0
- package/dist/modules/support/index.js +56 -0
- package/dist/modules/tags/index.cjs +55 -0
- package/dist/modules/tags/index.d.cts +131 -0
- package/dist/modules/tags/index.d.ts +131 -0
- package/dist/modules/tags/index.js +55 -0
- package/dist/modules/tours/index.cjs +37 -0
- package/dist/modules/tours/index.d.cts +61 -0
- package/dist/modules/tours/index.d.ts +61 -0
- package/dist/modules/tours/index.js +37 -0
- package/dist/modules/vibecontrols/index.cjs +1081 -0
- package/dist/modules/vibecontrols/index.d.cts +1483 -0
- package/dist/modules/vibecontrols/index.d.ts +1483 -0
- package/dist/modules/vibecontrols/index.js +1081 -0
- package/dist/modules/workspaces/index.cjs +91 -0
- package/dist/modules/workspaces/index.d.cts +128 -0
- package/dist/modules/workspaces/index.d.ts +128 -0
- package/dist/modules/workspaces/index.js +91 -0
- package/package.json +117 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { S as SdkModule } from '../../module-JDbvil5h.js';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type TourStatus = 'PUBLISHED' | 'DRAFT' | 'ARCHIVED';
|
|
5
|
+
type TourProgressStatus = 'NOT_STARTED' | 'IN_PROGRESS' | 'COMPLETED' | 'SKIPPED' | 'PAUSED';
|
|
6
|
+
interface Tour {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
slug: string;
|
|
10
|
+
description?: string | null;
|
|
11
|
+
status: TourStatus;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
productId?: string | null;
|
|
14
|
+
moduleId?: string | null;
|
|
15
|
+
priority?: number | null;
|
|
16
|
+
displayOrder?: number | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
20
|
+
interface TourList {
|
|
21
|
+
tours: Tour[];
|
|
22
|
+
total: number;
|
|
23
|
+
hasMore: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface TourProgress {
|
|
26
|
+
id: string;
|
|
27
|
+
tourId: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
status: TourProgressStatus;
|
|
30
|
+
currentStepId?: string | null;
|
|
31
|
+
currentStepOrder?: number | null;
|
|
32
|
+
completedSteps?: string[] | null;
|
|
33
|
+
skippedSteps?: string[] | null;
|
|
34
|
+
startedAt?: string | null;
|
|
35
|
+
completedAt?: string | null;
|
|
36
|
+
lastViewedAt?: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface TourFilters {
|
|
39
|
+
status?: TourStatus;
|
|
40
|
+
productId?: string;
|
|
41
|
+
moduleId?: string;
|
|
42
|
+
isActive?: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface TourPagination {
|
|
45
|
+
limit?: number;
|
|
46
|
+
offset?: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface ToursProgressApi {
|
|
50
|
+
get(userId?: string, pagination?: TourPagination): Promise<TourProgress[]>;
|
|
51
|
+
reset(tourId: string, userId: string): Promise<TourProgress>;
|
|
52
|
+
}
|
|
53
|
+
interface ToursApi {
|
|
54
|
+
list(filters?: TourFilters, pagination?: TourPagination): Promise<TourList>;
|
|
55
|
+
progress: ToursProgressApi;
|
|
56
|
+
complete(tourId: string, stepId: string): Promise<TourProgress>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare const toursModule: SdkModule<ToursApi>;
|
|
60
|
+
|
|
61
|
+
export { type Tour, type TourFilters, type TourList, type TourPagination, type TourProgress, type TourProgressStatus, type TourStatus, type ToursApi, type ToursProgressApi, toursModule as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var P=`
|
|
2
|
+
fragment TourFields on Tour {
|
|
3
|
+
id name slug description status isActive productId moduleId
|
|
4
|
+
priority displayOrder createdAt updatedAt
|
|
5
|
+
}
|
|
6
|
+
`,u=`
|
|
7
|
+
fragment TourProgressFields on UserTourProgress {
|
|
8
|
+
id tourId userId status currentStepId currentStepOrder
|
|
9
|
+
completedSteps skippedSteps startedAt completedAt lastViewedAt
|
|
10
|
+
}
|
|
11
|
+
`,T=`
|
|
12
|
+
${P}
|
|
13
|
+
query Tours($filters: TourFilters, $pagination: TourPagination) {
|
|
14
|
+
tours(filters: $filters, pagination: $pagination) {
|
|
15
|
+
tours { ...TourFields }
|
|
16
|
+
total
|
|
17
|
+
hasMore
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`,n=`
|
|
21
|
+
${u}
|
|
22
|
+
query UserTourProgresses($userId: ID, $pagination: TourPagination) {
|
|
23
|
+
userTourProgresses(userId: $userId, pagination: $pagination) {
|
|
24
|
+
...TourProgressFields
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
`,p=`
|
|
28
|
+
${u}
|
|
29
|
+
mutation ResetTourProgress($tourId: ID!, $userId: ID!) {
|
|
30
|
+
resetTourProgress(tourId: $tourId, userId: $userId) { ...TourProgressFields }
|
|
31
|
+
}
|
|
32
|
+
`,d=`
|
|
33
|
+
${u}
|
|
34
|
+
mutation CompleteTourStep($tourId: ID!, $stepId: ID!) {
|
|
35
|
+
completeTourStep(tourId: $tourId, stepId: $stepId) { ...TourProgressFields }
|
|
36
|
+
}
|
|
37
|
+
`;function g(e){let{global:t}=e.gql;return {async list(r,o){return (await t.request(T,{filters:r,pagination:o})).tours},progress:{async get(r,o){return (await t.request(n,{userId:r,pagination:o})).userTourProgresses},async reset(r,o){return (await t.request(p,{tourId:r,userId:o})).resetTourProgress}},async complete(r,o){return (await t.request(d,{tourId:r,stepId:o})).completeTourStep}}}var c={id:"tours",version:"1.0.0",displayName:"Tours",dependsOn:["auth"],attach(e){return g(e)}},$=c;export{$ as default};
|