@lessly/sdk-app 0.1.11
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 +134 -0
- package/dist/client.gen-DtgaSZYB.d.cts +909 -0
- package/dist/client.gen-DtgaSZYB.d.ts +909 -0
- package/dist/index.cjs +932 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +37 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +929 -0
- package/dist/index.js.map +1 -0
- package/dist/organization/index.cjs +251 -0
- package/dist/organization/index.cjs.map +1 -0
- package/dist/organization/index.d.cts +200 -0
- package/dist/organization/index.d.ts +200 -0
- package/dist/organization/index.js +201 -0
- package/dist/organization/index.js.map +1 -0
- package/dist/playground/index.cjs +66 -0
- package/dist/playground/index.cjs.map +1 -0
- package/dist/playground/index.d.cts +52 -0
- package/dist/playground/index.d.ts +52 -0
- package/dist/playground/index.js +53 -0
- package/dist/playground/index.js.map +1 -0
- package/docs/README.md +82 -0
- package/docs/recipes/federation.md +111 -0
- package/docs/recipes/local-dev.md +107 -0
- package/docs/recipes/sdk-usage.md +99 -0
- package/docs/rules.md +89 -0
- package/package.json +54 -0
- package/src/gen/bindings.gen.ts +782 -0
- package/src/gen/client.gen.ts +237 -0
- package/src/gen/manifest.gen.ts +2 -0
- package/src/gen/organization/index.ts +3 -0
- package/src/gen/organization/queryOptions.gen.ts +318 -0
- package/src/gen/playground/index.ts +3 -0
- package/src/gen/playground/queryOptions.gen.ts +86 -0
- package/src/gen/types.gen.ts +936 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/gen/organization/queryOptions.gen.ts"],"names":[],"mappings":";AA0EO,IAAM,8BAAA,GAAiC,CAAC,GAAA,EAAsB,KAAA,MAAoC;AAAA,EACvG,QAAA,EAAU,CAAC,cAAA,EAAgB,MAAA,EAAQ,MAAM,KAAK,CAAA;AAAA,EAC9C,OAAA,EAAS,MAAM,GAAA,CAAI,cA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KAAK,CAAA,CAAE,KAAK;AAC1D,CAAA;AAEO,IAAM,iCAAA,GAAoC,CAAC,GAAA,EAAsB,KAAA,MAAuC;AAAA,EAC7G,QAAA,EAAU,CAAC,cAAA,EAAgB,OAAA,EAAS,QAAQ,KAAK,CAAA;AAAA,EACjD,OAAA,EAAS,MAAM,GAAA,CAAI,cAAc,EAAE,OAAO,CAAA,CAAE,MAAM,CAAA,CAAE,KAAK;AAC3D,CAAA;AAEO,IAAM,sCAAA,GAAyC,CAAC,GAAA,MAA0B;AAAA,EAC/E,WAAA,EAAa,CAAC,cAAA,EAAgB,OAAA,EAAS,QAAQ,CAAA;AAAA,EAC/C,UAAA,EAAY,CAAC,KAAA,KAAwC,GAAA,CAAI,cAAc,EAAE,OAAO,CAAA,CAAE,QAAQ,CAAA,CAAE,KAAK;AACnG,CAAA","file":"index.js","sourcesContent":["// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport type { GeneratedClient } from '../client.gen';\nimport type {\n OrganizationAuthMeInput,\n OrganizationAuthMeOutput,\n OrganizationBindingsListInput,\n OrganizationBindingsListOutput,\n OrganizationClickupInstallInput,\n OrganizationClickupListInstallationsInput,\n OrganizationClickupListInstallationsOutput,\n OrganizationCloudflareInstallInput,\n OrganizationConnectorsAttachInput,\n OrganizationConnectorsDeleteInput,\n OrganizationConnectorsDetachInput,\n OrganizationConnectorsListAttachmentsInput,\n OrganizationConnectorsListAttachmentsOutput,\n OrganizationConnectorsListInput,\n OrganizationConnectorsListOrgInput,\n OrganizationConnectorsListOrgOutput,\n OrganizationConnectorsListOutput,\n OrganizationConnectorsRemoveInput,\n OrganizationDomainsAddInput,\n OrganizationDomainsGetInput,\n OrganizationDomainsGetOutput,\n OrganizationDomainsListInput,\n OrganizationDomainsListOutput,\n OrganizationDomainsRemoveInput,\n OrganizationExtensionsInstallInput,\n OrganizationExtensionsListInput,\n OrganizationExtensionsListInstalledInput,\n OrganizationExtensionsListInstalledOutput,\n OrganizationExtensionsListOutput,\n OrganizationExtensionsUninstallInput,\n OrganizationGdriveInstallInput,\n OrganizationGithubInstallInput,\n OrganizationGithubListInstallationsInput,\n OrganizationGithubListInstallationsOutput,\n OrganizationGoogleadsInstallInput,\n OrganizationMemberAcceptInviteInput,\n OrganizationMemberInviteInput,\n OrganizationMemberListInput,\n OrganizationMemberListInvitationsInput,\n OrganizationMemberListInvitationsOutput,\n OrganizationMemberListOutput,\n OrganizationMemberListProductAccessInput,\n OrganizationMemberListProductAccessOutput,\n OrganizationMemberRemoveInput,\n OrganizationMemberRevokeInvitationInput,\n OrganizationMemberSetRoleInput,\n OrganizationMemberShareProductInput,\n OrganizationMemberUnshareProductInput,\n OrganizationMembersAssignRoleInput,\n OrganizationPermissionCatalogInput,\n OrganizationPermissionCatalogOutput,\n OrganizationProductAcceptInvitationInput,\n OrganizationProductCreateInput,\n OrganizationProductInviteInput,\n OrganizationProductListInput,\n OrganizationProductListInvitationsInput,\n OrganizationProductListInvitationsOutput,\n OrganizationProductListMembersInput,\n OrganizationProductListMembersOutput,\n OrganizationProductListOutput,\n OrganizationProductRevokeInvitationInput,\n OrganizationProductSelectInput,\n OrganizationRolesCreateInput,\n OrganizationRolesDeleteInput,\n OrganizationRolesGetInput,\n OrganizationRolesGetOutput,\n OrganizationRolesListInput,\n OrganizationRolesListOutput,\n OrganizationRolesUpdateInput,\n} from '../types.gen';\n\nexport const organizationAuthMeQueryOptions = (sdk: GeneratedClient, input: OrganizationAuthMeInput) => ({\n queryKey: ['organization', 'auth', 'me', input] as const,\n queryFn: () => sdk['organization']['auth']['me'](input),\n});\n\nexport const organizationBindingsListQueryOptions = (sdk: GeneratedClient, input: OrganizationBindingsListInput) => ({\n queryKey: ['organization', 'bindings', 'list', input] as const,\n queryFn: () => sdk['organization']['bindings']['list'](input),\n});\n\nexport const organizationClickupInstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'clickup', 'install'],\n mutationFn: (input: OrganizationClickupInstallInput) => sdk['organization']['clickup']['install'](input),\n});\n\nexport const organizationClickupListInstallationsQueryOptions = (sdk: GeneratedClient, input: OrganizationClickupListInstallationsInput) => ({\n queryKey: ['organization', 'clickup', 'list-installations', input] as const,\n queryFn: () => sdk['organization']['clickup']['list-installations'](input),\n});\n\nexport const organizationCloudflareInstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'cloudflare', 'install'],\n mutationFn: (input: OrganizationCloudflareInstallInput) => sdk['organization']['cloudflare']['install'](input),\n});\n\nexport const organizationConnectorsAttachMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'connectors', 'attach'],\n mutationFn: (input: OrganizationConnectorsAttachInput) => sdk['organization']['connectors']['attach'](input),\n});\n\nexport const organizationConnectorsDeleteMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'connectors', 'delete'],\n mutationFn: (input: OrganizationConnectorsDeleteInput) => sdk['organization']['connectors']['delete'](input),\n});\n\nexport const organizationConnectorsDetachMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'connectors', 'detach'],\n mutationFn: (input: OrganizationConnectorsDetachInput) => sdk['organization']['connectors']['detach'](input),\n});\n\nexport const organizationConnectorsListQueryOptions = (sdk: GeneratedClient, input: OrganizationConnectorsListInput) => ({\n queryKey: ['organization', 'connectors', 'list', input] as const,\n queryFn: () => sdk['organization']['connectors']['list'](input),\n});\n\nexport const organizationConnectorsListAttachmentsQueryOptions = (sdk: GeneratedClient, input: OrganizationConnectorsListAttachmentsInput) => ({\n queryKey: ['organization', 'connectors', 'list-attachments', input] as const,\n queryFn: () => sdk['organization']['connectors']['list-attachments'](input),\n});\n\nexport const organizationConnectorsListOrgQueryOptions = (sdk: GeneratedClient, input: OrganizationConnectorsListOrgInput) => ({\n queryKey: ['organization', 'connectors', 'list-org', input] as const,\n queryFn: () => sdk['organization']['connectors']['list-org'](input),\n});\n\nexport const organizationConnectorsRemoveMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'connectors', 'remove'],\n mutationFn: (input: OrganizationConnectorsRemoveInput) => sdk['organization']['connectors']['remove'](input),\n});\n\nexport const organizationDomainsAddMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'domains', 'add'],\n mutationFn: (input: OrganizationDomainsAddInput) => sdk['organization']['domains']['add'](input),\n});\n\nexport const organizationDomainsGetQueryOptions = (sdk: GeneratedClient, input: OrganizationDomainsGetInput) => ({\n queryKey: ['organization', 'domains', 'get', input] as const,\n queryFn: () => sdk['organization']['domains']['get'](input),\n});\n\nexport const organizationDomainsListQueryOptions = (sdk: GeneratedClient, input: OrganizationDomainsListInput) => ({\n queryKey: ['organization', 'domains', 'list', input] as const,\n queryFn: () => sdk['organization']['domains']['list'](input),\n});\n\nexport const organizationDomainsRemoveMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'domains', 'remove'],\n mutationFn: (input: OrganizationDomainsRemoveInput) => sdk['organization']['domains']['remove'](input),\n});\n\nexport const organizationExtensionsInstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'extensions', 'install'],\n mutationFn: (input: OrganizationExtensionsInstallInput) => sdk['organization']['extensions']['install'](input),\n});\n\nexport const organizationExtensionsListQueryOptions = (sdk: GeneratedClient, input: OrganizationExtensionsListInput) => ({\n queryKey: ['organization', 'extensions', 'list', input] as const,\n queryFn: () => sdk['organization']['extensions']['list'](input),\n});\n\nexport const organizationExtensionsListInstalledQueryOptions = (sdk: GeneratedClient, input: OrganizationExtensionsListInstalledInput) => ({\n queryKey: ['organization', 'extensions', 'list-installed', input] as const,\n queryFn: () => sdk['organization']['extensions']['list-installed'](input),\n});\n\nexport const organizationExtensionsUninstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'extensions', 'uninstall'],\n mutationFn: (input: OrganizationExtensionsUninstallInput) => sdk['organization']['extensions']['uninstall'](input),\n});\n\nexport const organizationGdriveInstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'gdrive', 'install'],\n mutationFn: (input: OrganizationGdriveInstallInput) => sdk['organization']['gdrive']['install'](input),\n});\n\nexport const organizationGithubInstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'github', 'install'],\n mutationFn: (input: OrganizationGithubInstallInput) => sdk['organization']['github']['install'](input),\n});\n\nexport const organizationGithubListInstallationsQueryOptions = (sdk: GeneratedClient, input: OrganizationGithubListInstallationsInput) => ({\n queryKey: ['organization', 'github', 'list-installations', input] as const,\n queryFn: () => sdk['organization']['github']['list-installations'](input),\n});\n\nexport const organizationGoogleadsInstallMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'googleads', 'install'],\n mutationFn: (input: OrganizationGoogleadsInstallInput) => sdk['organization']['googleads']['install'](input),\n});\n\nexport const organizationMemberAcceptInviteMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'accept-invite'],\n mutationFn: (input: OrganizationMemberAcceptInviteInput) => sdk['organization']['member']['accept-invite'](input),\n});\n\nexport const organizationMemberInviteMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'invite'],\n mutationFn: (input: OrganizationMemberInviteInput) => sdk['organization']['member']['invite'](input),\n});\n\nexport const organizationMemberListQueryOptions = (sdk: GeneratedClient, input: OrganizationMemberListInput) => ({\n queryKey: ['organization', 'member', 'list', input] as const,\n queryFn: () => sdk['organization']['member']['list'](input),\n});\n\nexport const organizationMemberListInvitationsQueryOptions = (sdk: GeneratedClient, input: OrganizationMemberListInvitationsInput) => ({\n queryKey: ['organization', 'member', 'list-invitations', input] as const,\n queryFn: () => sdk['organization']['member']['list-invitations'](input),\n});\n\nexport const organizationMemberListProductAccessQueryOptions = (sdk: GeneratedClient, input: OrganizationMemberListProductAccessInput) => ({\n queryKey: ['organization', 'member', 'list-product-access', input] as const,\n queryFn: () => sdk['organization']['member']['list-product-access'](input),\n});\n\nexport const organizationMemberRemoveMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'remove'],\n mutationFn: (input: OrganizationMemberRemoveInput) => sdk['organization']['member']['remove'](input),\n});\n\nexport const organizationMemberRevokeInvitationMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'revoke-invitation'],\n mutationFn: (input: OrganizationMemberRevokeInvitationInput) => sdk['organization']['member']['revoke-invitation'](input),\n});\n\nexport const organizationMemberSetRoleMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'set-role'],\n mutationFn: (input: OrganizationMemberSetRoleInput) => sdk['organization']['member']['set-role'](input),\n});\n\nexport const organizationMemberShareProductMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'share-product'],\n mutationFn: (input: OrganizationMemberShareProductInput) => sdk['organization']['member']['share-product'](input),\n});\n\nexport const organizationMemberUnshareProductMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'member', 'unshare-product'],\n mutationFn: (input: OrganizationMemberUnshareProductInput) => sdk['organization']['member']['unshare-product'](input),\n});\n\nexport const organizationMembersAssignRoleMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'members', 'assign-role'],\n mutationFn: (input: OrganizationMembersAssignRoleInput) => sdk['organization']['members']['assign-role'](input),\n});\n\nexport const organizationPermissionCatalogQueryOptions = (sdk: GeneratedClient, input: OrganizationPermissionCatalogInput) => ({\n queryKey: ['organization', 'permission', 'catalog', input] as const,\n queryFn: () => sdk['organization']['permission']['catalog'](input),\n});\n\nexport const organizationProductAcceptInvitationMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'product', 'accept-invitation'],\n mutationFn: (input: OrganizationProductAcceptInvitationInput) => sdk['organization']['product']['accept-invitation'](input),\n});\n\nexport const organizationProductCreateMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'product', 'create'],\n mutationFn: (input: OrganizationProductCreateInput) => sdk['organization']['product']['create'](input),\n});\n\nexport const organizationProductInviteMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'product', 'invite'],\n mutationFn: (input: OrganizationProductInviteInput) => sdk['organization']['product']['invite'](input),\n});\n\nexport const organizationProductListQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListInput) => ({\n queryKey: ['organization', 'product', 'list', input] as const,\n queryFn: () => sdk['organization']['product']['list'](input),\n});\n\nexport const organizationProductListInvitationsQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListInvitationsInput) => ({\n queryKey: ['organization', 'product', 'list-invitations', input] as const,\n queryFn: () => sdk['organization']['product']['list-invitations'](input),\n});\n\nexport const organizationProductListMembersQueryOptions = (sdk: GeneratedClient, input: OrganizationProductListMembersInput) => ({\n queryKey: ['organization', 'product', 'list-members', input] as const,\n queryFn: () => sdk['organization']['product']['list-members'](input),\n});\n\nexport const organizationProductRevokeInvitationMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'product', 'revoke-invitation'],\n mutationFn: (input: OrganizationProductRevokeInvitationInput) => sdk['organization']['product']['revoke-invitation'](input),\n});\n\nexport const organizationProductSelectMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'product', 'select'],\n mutationFn: (input: OrganizationProductSelectInput) => sdk['organization']['product']['select'](input),\n});\n\nexport const organizationRolesCreateMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'roles', 'create'],\n mutationFn: (input: OrganizationRolesCreateInput) => sdk['organization']['roles']['create'](input),\n});\n\nexport const organizationRolesDeleteMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'roles', 'delete'],\n mutationFn: (input: OrganizationRolesDeleteInput) => sdk['organization']['roles']['delete'](input),\n});\n\nexport const organizationRolesGetQueryOptions = (sdk: GeneratedClient, input: OrganizationRolesGetInput) => ({\n queryKey: ['organization', 'roles', 'get', input] as const,\n queryFn: () => sdk['organization']['roles']['get'](input),\n});\n\nexport const organizationRolesListQueryOptions = (sdk: GeneratedClient, input: OrganizationRolesListInput) => ({\n queryKey: ['organization', 'roles', 'list', input] as const,\n queryFn: () => sdk['organization']['roles']['list'](input),\n});\n\nexport const organizationRolesUpdateMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['organization', 'roles', 'update'],\n mutationFn: (input: OrganizationRolesUpdateInput) => sdk['organization']['roles']['update'](input),\n});\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/gen/playground/queryOptions.gen.ts
|
|
4
|
+
var playgroundAnalyticsOverviewQueryOptions = (sdk, input) => ({
|
|
5
|
+
queryKey: ["playground", "analytics", "overview", input],
|
|
6
|
+
queryFn: () => sdk["playground"]["analytics"]["overview"](input)
|
|
7
|
+
});
|
|
8
|
+
var playgroundBillingEntitlementsQueryOptions = (sdk, input) => ({
|
|
9
|
+
queryKey: ["playground", "billing", "entitlements", input],
|
|
10
|
+
queryFn: () => sdk["playground"]["billing"]["entitlements"](input)
|
|
11
|
+
});
|
|
12
|
+
var playgroundBillingRecordUsageMutationOptions = (sdk) => ({
|
|
13
|
+
mutationKey: ["playground", "billing", "record-usage"],
|
|
14
|
+
mutationFn: (input) => sdk["playground"]["billing"]["record-usage"](input)
|
|
15
|
+
});
|
|
16
|
+
var playgroundClickupCreateTaskMutationOptions = (sdk) => ({
|
|
17
|
+
mutationKey: ["playground", "clickup", "create-task"],
|
|
18
|
+
mutationFn: (input) => sdk["playground"]["clickup"]["create-task"](input)
|
|
19
|
+
});
|
|
20
|
+
var playgroundClickupGetLastWebhookQueryOptions = (sdk, input) => ({
|
|
21
|
+
queryKey: ["playground", "clickup", "get-last-webhook", input],
|
|
22
|
+
queryFn: () => sdk["playground"]["clickup"]["get-last-webhook"](input)
|
|
23
|
+
});
|
|
24
|
+
var playgroundClickupGetOverviewQueryOptions = (sdk, input) => ({
|
|
25
|
+
queryKey: ["playground", "clickup", "get-overview", input],
|
|
26
|
+
queryFn: () => sdk["playground"]["clickup"]["get-overview"](input)
|
|
27
|
+
});
|
|
28
|
+
var playgroundGdriveGetLastChangeQueryOptions = (sdk, input) => ({
|
|
29
|
+
queryKey: ["playground", "gdrive", "get-last-change", input],
|
|
30
|
+
queryFn: () => sdk["playground"]["gdrive"]["get-last-change"](input)
|
|
31
|
+
});
|
|
32
|
+
var playgroundGdriveReadFileQueryOptions = (sdk, input) => ({
|
|
33
|
+
queryKey: ["playground", "gdrive", "read-file", input],
|
|
34
|
+
queryFn: () => sdk["playground"]["gdrive"]["read-file"](input)
|
|
35
|
+
});
|
|
36
|
+
var playgroundGoogleadsReadCustomerQueryOptions = (sdk, input) => ({
|
|
37
|
+
queryKey: ["playground", "googleads", "read-customer", input],
|
|
38
|
+
queryFn: () => sdk["playground"]["googleads"]["read-customer"](input)
|
|
39
|
+
});
|
|
40
|
+
var playgroundLifecycleGetStateQueryOptions = (sdk, input) => ({
|
|
41
|
+
queryKey: ["playground", "lifecycle", "get-state", input],
|
|
42
|
+
queryFn: () => sdk["playground"]["lifecycle"]["get-state"](input)
|
|
43
|
+
});
|
|
44
|
+
var playgroundLifecycleListEventsQueryOptions = (sdk, input) => ({
|
|
45
|
+
queryKey: ["playground", "lifecycle", "list-events", input],
|
|
46
|
+
queryFn: () => sdk["playground"]["lifecycle"]["list-events"](input)
|
|
47
|
+
});
|
|
48
|
+
var playgroundWebhookGetLastQueryOptions = (sdk, input) => ({
|
|
49
|
+
queryKey: ["playground", "webhook", "get-last", input],
|
|
50
|
+
queryFn: () => sdk["playground"]["webhook"]["get-last"](input)
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
exports.playgroundAnalyticsOverviewQueryOptions = playgroundAnalyticsOverviewQueryOptions;
|
|
54
|
+
exports.playgroundBillingEntitlementsQueryOptions = playgroundBillingEntitlementsQueryOptions;
|
|
55
|
+
exports.playgroundBillingRecordUsageMutationOptions = playgroundBillingRecordUsageMutationOptions;
|
|
56
|
+
exports.playgroundClickupCreateTaskMutationOptions = playgroundClickupCreateTaskMutationOptions;
|
|
57
|
+
exports.playgroundClickupGetLastWebhookQueryOptions = playgroundClickupGetLastWebhookQueryOptions;
|
|
58
|
+
exports.playgroundClickupGetOverviewQueryOptions = playgroundClickupGetOverviewQueryOptions;
|
|
59
|
+
exports.playgroundGdriveGetLastChangeQueryOptions = playgroundGdriveGetLastChangeQueryOptions;
|
|
60
|
+
exports.playgroundGdriveReadFileQueryOptions = playgroundGdriveReadFileQueryOptions;
|
|
61
|
+
exports.playgroundGoogleadsReadCustomerQueryOptions = playgroundGoogleadsReadCustomerQueryOptions;
|
|
62
|
+
exports.playgroundLifecycleGetStateQueryOptions = playgroundLifecycleGetStateQueryOptions;
|
|
63
|
+
exports.playgroundLifecycleListEventsQueryOptions = playgroundLifecycleListEventsQueryOptions;
|
|
64
|
+
exports.playgroundWebhookGetLastQueryOptions = playgroundWebhookGetLastQueryOptions;
|
|
65
|
+
//# sourceMappingURL=index.cjs.map
|
|
66
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/gen/playground/queryOptions.gen.ts"],"names":[],"mappings":";;;AA2BO,IAAM,uCAAA,GAA0C,CAAC,GAAA,EAAsB,KAAA,MAA6C;AAAA,EACzH,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,YAAY,KAAK,CAAA;AAAA,EACvD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,UAAU,CAAA,CAAE,KAAK;AACjE,CAAA;AAEO,IAAM,yCAAA,GAA4C,CAAC,GAAA,EAAsB,KAAA,MAA+C;AAAA,EAC7H,QAAA,EAAU,CAAC,YAAA,EAAc,SAAA,EAAW,gBAAgB,KAAK,CAAA;AAAA,EACzD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,cAAc,CAAA,CAAE,KAAK;AACnE,CAAA;AAEO,IAAM,2CAAA,GAA8C,CAAC,GAAA,MAA0B;AAAA,EACpF,WAAA,E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AA,EAAc,QAAA,EAAU,aAAa,KAAK,CAAA;AAAA,EACrD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,QAAQ,CAAA,CAAE,WAAW,CAAA,CAAE,KAAK;AAC/D,CAAA;AAEO,IAAM,2CAAA,GAA8C,CAAC,GAAA,EAAsB,KAAA,MAAiD;AAAA,EACjI,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,iBAAiB,KAAK,CAAA;AAAA,EAC5D,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,eAAe,CAAA,CAAE,KAAK;AACtE,CAAA;AAEO,IAAM,uCAAA,GAA0C,CAAC,GAAA,EAAsB,KAAA,MAA6C;AAAA,EACzH,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,aAAa,KAAK,CAAA;AAAA,EACxD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,WAAW,CAAA,CAAE,KAAK;AAClE,CAAA;AAEO,IAAM,yCAAA,GAA4C,CAAC,GAAA,EAAsB,KAAA,MAA+C;AAAA,EAC7H,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,eAAe,KAAK,CAAA;AAAA,EAC1D,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,aAAa,CAAA,CAAE,KAAK;AACpE,CAAA;AAEO,IAAM,oCAAA,GAAuC,CAAC,GAAA,EAAsB,KAAA,MAA0C;AAAA,EACnH,QAAA,EAAU,CAAC,YAAA,EAAc,SAAA,EAAW,YAAY,KAAK,CAAA;AAAA,EACrD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,UAAU,CAAA,CAAE,KAAK;AAC/D,CAAA","file":"index.cjs","sourcesContent":["// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport type { GeneratedClient } from '../client.gen';\nimport type {\n PlaygroundAnalyticsOverviewInput,\n PlaygroundAnalyticsOverviewOutput,\n PlaygroundBillingEntitlementsInput,\n PlaygroundBillingEntitlementsOutput,\n PlaygroundBillingRecordUsageInput,\n PlaygroundClickupCreateTaskInput,\n PlaygroundClickupGetLastWebhookInput,\n PlaygroundClickupGetLastWebhookOutput,\n PlaygroundClickupGetOverviewInput,\n PlaygroundClickupGetOverviewOutput,\n PlaygroundGdriveGetLastChangeInput,\n PlaygroundGdriveGetLastChangeOutput,\n PlaygroundGdriveReadFileInput,\n PlaygroundGdriveReadFileOutput,\n PlaygroundGoogleadsReadCustomerInput,\n PlaygroundGoogleadsReadCustomerOutput,\n PlaygroundLifecycleGetStateInput,\n PlaygroundLifecycleGetStateOutput,\n PlaygroundLifecycleListEventsInput,\n PlaygroundLifecycleListEventsOutput,\n PlaygroundWebhookGetLastInput,\n PlaygroundWebhookGetLastOutput,\n} from '../types.gen';\n\nexport const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({\n queryKey: ['playground', 'analytics', 'overview', input] as const,\n queryFn: () => sdk['playground']['analytics']['overview'](input),\n});\n\nexport const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({\n queryKey: ['playground', 'billing', 'entitlements', input] as const,\n queryFn: () => sdk['playground']['billing']['entitlements'](input),\n});\n\nexport const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'billing', 'record-usage'],\n mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),\n});\n\nexport const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'clickup', 'create-task'],\n mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),\n});\n\nexport const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({\n queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),\n});\n\nexport const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({\n queryKey: ['playground', 'clickup', 'get-overview', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-overview'](input),\n});\n\nexport const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({\n queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,\n queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),\n});\n\nexport const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({\n queryKey: ['playground', 'gdrive', 'read-file', input] as const,\n queryFn: () => sdk['playground']['gdrive']['read-file'](input),\n});\n\nexport const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({\n queryKey: ['playground', 'googleads', 'read-customer', input] as const,\n queryFn: () => sdk['playground']['googleads']['read-customer'](input),\n});\n\nexport const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({\n queryKey: ['playground', 'lifecycle', 'get-state', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['get-state'](input),\n});\n\nexport const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({\n queryKey: ['playground', 'lifecycle', 'list-events', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['list-events'](input),\n});\n\nexport const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({\n queryKey: ['playground', 'webhook', 'get-last', input] as const,\n queryFn: () => sdk['playground']['webhook']['get-last'](input),\n});\n"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { G as GeneratedClient, aJ as PlaygroundAnalyticsOverviewInput, aK as PlaygroundAnalyticsOverviewOutput, aL as PlaygroundBillingEntitlementsInput, aM as PlaygroundBillingEntitlementsOutput, aN as PlaygroundBillingRecordUsageInput, aO as PlaygroundBillingRecordUsageOutput, aP as PlaygroundClickupCreateTaskInput, aQ as PlaygroundClickupCreateTaskOutput, aR as PlaygroundClickupGetLastWebhookInput, aS as PlaygroundClickupGetLastWebhookOutput, aT as PlaygroundClickupGetOverviewInput, aU as PlaygroundClickupGetOverviewOutput, aV as PlaygroundGdriveGetLastChangeInput, aW as PlaygroundGdriveGetLastChangeOutput, aX as PlaygroundGdriveReadFileInput, aY as PlaygroundGdriveReadFileOutput, aZ as PlaygroundGoogleadsReadCustomerInput, a_ as PlaygroundGoogleadsReadCustomerOutput, a$ as PlaygroundLifecycleGetStateInput, b0 as PlaygroundLifecycleGetStateOutput, b1 as PlaygroundLifecycleListEventsInput, b2 as PlaygroundLifecycleListEventsOutput, b3 as PlaygroundWebhookGetLastInput, b4 as PlaygroundWebhookGetLastOutput } from '../client.gen-DtgaSZYB.cjs';
|
|
2
|
+
|
|
3
|
+
declare const playgroundAnalyticsOverviewQueryOptions: (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => {
|
|
4
|
+
queryKey: readonly ["playground", "analytics", "overview", PlaygroundAnalyticsOverviewInput];
|
|
5
|
+
queryFn: () => Promise<PlaygroundAnalyticsOverviewOutput>;
|
|
6
|
+
};
|
|
7
|
+
declare const playgroundBillingEntitlementsQueryOptions: (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => {
|
|
8
|
+
queryKey: readonly ["playground", "billing", "entitlements", PlaygroundBillingEntitlementsInput];
|
|
9
|
+
queryFn: () => Promise<PlaygroundBillingEntitlementsOutput>;
|
|
10
|
+
};
|
|
11
|
+
declare const playgroundBillingRecordUsageMutationOptions: (sdk: GeneratedClient) => {
|
|
12
|
+
mutationKey: string[];
|
|
13
|
+
mutationFn: (input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>;
|
|
14
|
+
};
|
|
15
|
+
declare const playgroundClickupCreateTaskMutationOptions: (sdk: GeneratedClient) => {
|
|
16
|
+
mutationKey: string[];
|
|
17
|
+
mutationFn: (input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>;
|
|
18
|
+
};
|
|
19
|
+
declare const playgroundClickupGetLastWebhookQueryOptions: (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => {
|
|
20
|
+
queryKey: readonly ["playground", "clickup", "get-last-webhook", PlaygroundClickupGetLastWebhookInput];
|
|
21
|
+
queryFn: () => Promise<PlaygroundClickupGetLastWebhookOutput>;
|
|
22
|
+
};
|
|
23
|
+
declare const playgroundClickupGetOverviewQueryOptions: (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => {
|
|
24
|
+
queryKey: readonly ["playground", "clickup", "get-overview", PlaygroundClickupGetOverviewInput];
|
|
25
|
+
queryFn: () => Promise<PlaygroundClickupGetOverviewOutput>;
|
|
26
|
+
};
|
|
27
|
+
declare const playgroundGdriveGetLastChangeQueryOptions: (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => {
|
|
28
|
+
queryKey: readonly ["playground", "gdrive", "get-last-change", PlaygroundGdriveGetLastChangeInput];
|
|
29
|
+
queryFn: () => Promise<PlaygroundGdriveGetLastChangeOutput>;
|
|
30
|
+
};
|
|
31
|
+
declare const playgroundGdriveReadFileQueryOptions: (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => {
|
|
32
|
+
queryKey: readonly ["playground", "gdrive", "read-file", PlaygroundGdriveReadFileInput];
|
|
33
|
+
queryFn: () => Promise<PlaygroundGdriveReadFileOutput>;
|
|
34
|
+
};
|
|
35
|
+
declare const playgroundGoogleadsReadCustomerQueryOptions: (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => {
|
|
36
|
+
queryKey: readonly ["playground", "googleads", "read-customer", PlaygroundGoogleadsReadCustomerInput];
|
|
37
|
+
queryFn: () => Promise<PlaygroundGoogleadsReadCustomerOutput>;
|
|
38
|
+
};
|
|
39
|
+
declare const playgroundLifecycleGetStateQueryOptions: (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => {
|
|
40
|
+
queryKey: readonly ["playground", "lifecycle", "get-state", PlaygroundLifecycleGetStateInput];
|
|
41
|
+
queryFn: () => Promise<PlaygroundLifecycleGetStateOutput>;
|
|
42
|
+
};
|
|
43
|
+
declare const playgroundLifecycleListEventsQueryOptions: (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => {
|
|
44
|
+
queryKey: readonly ["playground", "lifecycle", "list-events", PlaygroundLifecycleListEventsInput];
|
|
45
|
+
queryFn: () => Promise<PlaygroundLifecycleListEventsOutput>;
|
|
46
|
+
};
|
|
47
|
+
declare const playgroundWebhookGetLastQueryOptions: (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => {
|
|
48
|
+
queryKey: readonly ["playground", "webhook", "get-last", PlaygroundWebhookGetLastInput];
|
|
49
|
+
queryFn: () => Promise<PlaygroundWebhookGetLastOutput>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, playgroundAnalyticsOverviewQueryOptions, playgroundBillingEntitlementsQueryOptions, playgroundBillingRecordUsageMutationOptions, playgroundClickupCreateTaskMutationOptions, playgroundClickupGetLastWebhookQueryOptions, playgroundClickupGetOverviewQueryOptions, playgroundGdriveGetLastChangeQueryOptions, playgroundGdriveReadFileQueryOptions, playgroundGoogleadsReadCustomerQueryOptions, playgroundLifecycleGetStateQueryOptions, playgroundLifecycleListEventsQueryOptions, playgroundWebhookGetLastQueryOptions };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { G as GeneratedClient, aJ as PlaygroundAnalyticsOverviewInput, aK as PlaygroundAnalyticsOverviewOutput, aL as PlaygroundBillingEntitlementsInput, aM as PlaygroundBillingEntitlementsOutput, aN as PlaygroundBillingRecordUsageInput, aO as PlaygroundBillingRecordUsageOutput, aP as PlaygroundClickupCreateTaskInput, aQ as PlaygroundClickupCreateTaskOutput, aR as PlaygroundClickupGetLastWebhookInput, aS as PlaygroundClickupGetLastWebhookOutput, aT as PlaygroundClickupGetOverviewInput, aU as PlaygroundClickupGetOverviewOutput, aV as PlaygroundGdriveGetLastChangeInput, aW as PlaygroundGdriveGetLastChangeOutput, aX as PlaygroundGdriveReadFileInput, aY as PlaygroundGdriveReadFileOutput, aZ as PlaygroundGoogleadsReadCustomerInput, a_ as PlaygroundGoogleadsReadCustomerOutput, a$ as PlaygroundLifecycleGetStateInput, b0 as PlaygroundLifecycleGetStateOutput, b1 as PlaygroundLifecycleListEventsInput, b2 as PlaygroundLifecycleListEventsOutput, b3 as PlaygroundWebhookGetLastInput, b4 as PlaygroundWebhookGetLastOutput } from '../client.gen-DtgaSZYB.js';
|
|
2
|
+
|
|
3
|
+
declare const playgroundAnalyticsOverviewQueryOptions: (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => {
|
|
4
|
+
queryKey: readonly ["playground", "analytics", "overview", PlaygroundAnalyticsOverviewInput];
|
|
5
|
+
queryFn: () => Promise<PlaygroundAnalyticsOverviewOutput>;
|
|
6
|
+
};
|
|
7
|
+
declare const playgroundBillingEntitlementsQueryOptions: (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => {
|
|
8
|
+
queryKey: readonly ["playground", "billing", "entitlements", PlaygroundBillingEntitlementsInput];
|
|
9
|
+
queryFn: () => Promise<PlaygroundBillingEntitlementsOutput>;
|
|
10
|
+
};
|
|
11
|
+
declare const playgroundBillingRecordUsageMutationOptions: (sdk: GeneratedClient) => {
|
|
12
|
+
mutationKey: string[];
|
|
13
|
+
mutationFn: (input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>;
|
|
14
|
+
};
|
|
15
|
+
declare const playgroundClickupCreateTaskMutationOptions: (sdk: GeneratedClient) => {
|
|
16
|
+
mutationKey: string[];
|
|
17
|
+
mutationFn: (input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>;
|
|
18
|
+
};
|
|
19
|
+
declare const playgroundClickupGetLastWebhookQueryOptions: (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => {
|
|
20
|
+
queryKey: readonly ["playground", "clickup", "get-last-webhook", PlaygroundClickupGetLastWebhookInput];
|
|
21
|
+
queryFn: () => Promise<PlaygroundClickupGetLastWebhookOutput>;
|
|
22
|
+
};
|
|
23
|
+
declare const playgroundClickupGetOverviewQueryOptions: (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => {
|
|
24
|
+
queryKey: readonly ["playground", "clickup", "get-overview", PlaygroundClickupGetOverviewInput];
|
|
25
|
+
queryFn: () => Promise<PlaygroundClickupGetOverviewOutput>;
|
|
26
|
+
};
|
|
27
|
+
declare const playgroundGdriveGetLastChangeQueryOptions: (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => {
|
|
28
|
+
queryKey: readonly ["playground", "gdrive", "get-last-change", PlaygroundGdriveGetLastChangeInput];
|
|
29
|
+
queryFn: () => Promise<PlaygroundGdriveGetLastChangeOutput>;
|
|
30
|
+
};
|
|
31
|
+
declare const playgroundGdriveReadFileQueryOptions: (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => {
|
|
32
|
+
queryKey: readonly ["playground", "gdrive", "read-file", PlaygroundGdriveReadFileInput];
|
|
33
|
+
queryFn: () => Promise<PlaygroundGdriveReadFileOutput>;
|
|
34
|
+
};
|
|
35
|
+
declare const playgroundGoogleadsReadCustomerQueryOptions: (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => {
|
|
36
|
+
queryKey: readonly ["playground", "googleads", "read-customer", PlaygroundGoogleadsReadCustomerInput];
|
|
37
|
+
queryFn: () => Promise<PlaygroundGoogleadsReadCustomerOutput>;
|
|
38
|
+
};
|
|
39
|
+
declare const playgroundLifecycleGetStateQueryOptions: (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => {
|
|
40
|
+
queryKey: readonly ["playground", "lifecycle", "get-state", PlaygroundLifecycleGetStateInput];
|
|
41
|
+
queryFn: () => Promise<PlaygroundLifecycleGetStateOutput>;
|
|
42
|
+
};
|
|
43
|
+
declare const playgroundLifecycleListEventsQueryOptions: (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => {
|
|
44
|
+
queryKey: readonly ["playground", "lifecycle", "list-events", PlaygroundLifecycleListEventsInput];
|
|
45
|
+
queryFn: () => Promise<PlaygroundLifecycleListEventsOutput>;
|
|
46
|
+
};
|
|
47
|
+
declare const playgroundWebhookGetLastQueryOptions: (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => {
|
|
48
|
+
queryKey: readonly ["playground", "webhook", "get-last", PlaygroundWebhookGetLastInput];
|
|
49
|
+
queryFn: () => Promise<PlaygroundWebhookGetLastOutput>;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, playgroundAnalyticsOverviewQueryOptions, playgroundBillingEntitlementsQueryOptions, playgroundBillingRecordUsageMutationOptions, playgroundClickupCreateTaskMutationOptions, playgroundClickupGetLastWebhookQueryOptions, playgroundClickupGetOverviewQueryOptions, playgroundGdriveGetLastChangeQueryOptions, playgroundGdriveReadFileQueryOptions, playgroundGoogleadsReadCustomerQueryOptions, playgroundLifecycleGetStateQueryOptions, playgroundLifecycleListEventsQueryOptions, playgroundWebhookGetLastQueryOptions };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// src/gen/playground/queryOptions.gen.ts
|
|
2
|
+
var playgroundAnalyticsOverviewQueryOptions = (sdk, input) => ({
|
|
3
|
+
queryKey: ["playground", "analytics", "overview", input],
|
|
4
|
+
queryFn: () => sdk["playground"]["analytics"]["overview"](input)
|
|
5
|
+
});
|
|
6
|
+
var playgroundBillingEntitlementsQueryOptions = (sdk, input) => ({
|
|
7
|
+
queryKey: ["playground", "billing", "entitlements", input],
|
|
8
|
+
queryFn: () => sdk["playground"]["billing"]["entitlements"](input)
|
|
9
|
+
});
|
|
10
|
+
var playgroundBillingRecordUsageMutationOptions = (sdk) => ({
|
|
11
|
+
mutationKey: ["playground", "billing", "record-usage"],
|
|
12
|
+
mutationFn: (input) => sdk["playground"]["billing"]["record-usage"](input)
|
|
13
|
+
});
|
|
14
|
+
var playgroundClickupCreateTaskMutationOptions = (sdk) => ({
|
|
15
|
+
mutationKey: ["playground", "clickup", "create-task"],
|
|
16
|
+
mutationFn: (input) => sdk["playground"]["clickup"]["create-task"](input)
|
|
17
|
+
});
|
|
18
|
+
var playgroundClickupGetLastWebhookQueryOptions = (sdk, input) => ({
|
|
19
|
+
queryKey: ["playground", "clickup", "get-last-webhook", input],
|
|
20
|
+
queryFn: () => sdk["playground"]["clickup"]["get-last-webhook"](input)
|
|
21
|
+
});
|
|
22
|
+
var playgroundClickupGetOverviewQueryOptions = (sdk, input) => ({
|
|
23
|
+
queryKey: ["playground", "clickup", "get-overview", input],
|
|
24
|
+
queryFn: () => sdk["playground"]["clickup"]["get-overview"](input)
|
|
25
|
+
});
|
|
26
|
+
var playgroundGdriveGetLastChangeQueryOptions = (sdk, input) => ({
|
|
27
|
+
queryKey: ["playground", "gdrive", "get-last-change", input],
|
|
28
|
+
queryFn: () => sdk["playground"]["gdrive"]["get-last-change"](input)
|
|
29
|
+
});
|
|
30
|
+
var playgroundGdriveReadFileQueryOptions = (sdk, input) => ({
|
|
31
|
+
queryKey: ["playground", "gdrive", "read-file", input],
|
|
32
|
+
queryFn: () => sdk["playground"]["gdrive"]["read-file"](input)
|
|
33
|
+
});
|
|
34
|
+
var playgroundGoogleadsReadCustomerQueryOptions = (sdk, input) => ({
|
|
35
|
+
queryKey: ["playground", "googleads", "read-customer", input],
|
|
36
|
+
queryFn: () => sdk["playground"]["googleads"]["read-customer"](input)
|
|
37
|
+
});
|
|
38
|
+
var playgroundLifecycleGetStateQueryOptions = (sdk, input) => ({
|
|
39
|
+
queryKey: ["playground", "lifecycle", "get-state", input],
|
|
40
|
+
queryFn: () => sdk["playground"]["lifecycle"]["get-state"](input)
|
|
41
|
+
});
|
|
42
|
+
var playgroundLifecycleListEventsQueryOptions = (sdk, input) => ({
|
|
43
|
+
queryKey: ["playground", "lifecycle", "list-events", input],
|
|
44
|
+
queryFn: () => sdk["playground"]["lifecycle"]["list-events"](input)
|
|
45
|
+
});
|
|
46
|
+
var playgroundWebhookGetLastQueryOptions = (sdk, input) => ({
|
|
47
|
+
queryKey: ["playground", "webhook", "get-last", input],
|
|
48
|
+
queryFn: () => sdk["playground"]["webhook"]["get-last"](input)
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { playgroundAnalyticsOverviewQueryOptions, playgroundBillingEntitlementsQueryOptions, playgroundBillingRecordUsageMutationOptions, playgroundClickupCreateTaskMutationOptions, playgroundClickupGetLastWebhookQueryOptions, playgroundClickupGetOverviewQueryOptions, playgroundGdriveGetLastChangeQueryOptions, playgroundGdriveReadFileQueryOptions, playgroundGoogleadsReadCustomerQueryOptions, playgroundLifecycleGetStateQueryOptions, playgroundLifecycleListEventsQueryOptions, playgroundWebhookGetLastQueryOptions };
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
53
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/gen/playground/queryOptions.gen.ts"],"names":[],"mappings":";AA2BO,IAAM,uCAAA,GAA0C,CAAC,GAAA,EAAsB,KAAA,MAA6C;AAAA,EACzH,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,YAAY,KAAK,CAAA;AAAA,EACvD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,UAAU,CAAA,CAAE,KAAK;AACjE,CAAA;AAEO,IAAM,yCAAA,GAA4C,CAAC,GAAA,EAAsB,KAAA,MAA+C;AAAA,EAC7H,QAAA,EAAU,CAAC,YAAA,EAAc,SAAA,EAAW,gBAAgB,KAAK,CAAA;AAAA,EACzD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,cAAc,CAAA,CAAE,KAAK;AACnE,CAAA;AAEO,IAAM,2CAAA,GAA8C,CAAC,GAAA,MAA0B;AAAA,EACpF,WAAA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YAAA,EAAc,QAAA,EAAU,aAAa,KAAK,CAAA;AAAA,EACrD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,QAAQ,CAAA,CAAE,WAAW,CAAA,CAAE,KAAK;AAC/D,CAAA;AAEO,IAAM,2CAAA,GAA8C,CAAC,GAAA,EAAsB,KAAA,MAAiD;AAAA,EACjI,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,iBAAiB,KAAK,CAAA;AAAA,EAC5D,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,eAAe,CAAA,CAAE,KAAK;AACtE,CAAA;AAEO,IAAM,uCAAA,GAA0C,CAAC,GAAA,EAAsB,KAAA,MAA6C;AAAA,EACzH,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,aAAa,KAAK,CAAA;AAAA,EACxD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,WAAW,CAAA,CAAE,KAAK;AAClE,CAAA;AAEO,IAAM,yCAAA,GAA4C,CAAC,GAAA,EAAsB,KAAA,MAA+C;AAAA,EAC7H,QAAA,EAAU,CAAC,YAAA,EAAc,WAAA,EAAa,eAAe,KAAK,CAAA;AAAA,EAC1D,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,WAAW,CAAA,CAAE,aAAa,CAAA,CAAE,KAAK;AACpE,CAAA;AAEO,IAAM,oCAAA,GAAuC,CAAC,GAAA,EAAsB,KAAA,MAA0C;AAAA,EACnH,QAAA,EAAU,CAAC,YAAA,EAAc,SAAA,EAAW,YAAY,KAAK,CAAA;AAAA,EACrD,OAAA,EAAS,MAAM,GAAA,CAAI,YAAY,EAAE,SAAS,CAAA,CAAE,UAAU,CAAA,CAAE,KAAK;AAC/D,CAAA","file":"index.js","sourcesContent":["// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport type { GeneratedClient } from '../client.gen';\nimport type {\n PlaygroundAnalyticsOverviewInput,\n PlaygroundAnalyticsOverviewOutput,\n PlaygroundBillingEntitlementsInput,\n PlaygroundBillingEntitlementsOutput,\n PlaygroundBillingRecordUsageInput,\n PlaygroundClickupCreateTaskInput,\n PlaygroundClickupGetLastWebhookInput,\n PlaygroundClickupGetLastWebhookOutput,\n PlaygroundClickupGetOverviewInput,\n PlaygroundClickupGetOverviewOutput,\n PlaygroundGdriveGetLastChangeInput,\n PlaygroundGdriveGetLastChangeOutput,\n PlaygroundGdriveReadFileInput,\n PlaygroundGdriveReadFileOutput,\n PlaygroundGoogleadsReadCustomerInput,\n PlaygroundGoogleadsReadCustomerOutput,\n PlaygroundLifecycleGetStateInput,\n PlaygroundLifecycleGetStateOutput,\n PlaygroundLifecycleListEventsInput,\n PlaygroundLifecycleListEventsOutput,\n PlaygroundWebhookGetLastInput,\n PlaygroundWebhookGetLastOutput,\n} from '../types.gen';\n\nexport const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({\n queryKey: ['playground', 'analytics', 'overview', input] as const,\n queryFn: () => sdk['playground']['analytics']['overview'](input),\n});\n\nexport const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({\n queryKey: ['playground', 'billing', 'entitlements', input] as const,\n queryFn: () => sdk['playground']['billing']['entitlements'](input),\n});\n\nexport const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'billing', 'record-usage'],\n mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),\n});\n\nexport const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'clickup', 'create-task'],\n mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),\n});\n\nexport const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({\n queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),\n});\n\nexport const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({\n queryKey: ['playground', 'clickup', 'get-overview', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-overview'](input),\n});\n\nexport const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({\n queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,\n queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),\n});\n\nexport const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({\n queryKey: ['playground', 'gdrive', 'read-file', input] as const,\n queryFn: () => sdk['playground']['gdrive']['read-file'](input),\n});\n\nexport const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({\n queryKey: ['playground', 'googleads', 'read-customer', input] as const,\n queryFn: () => sdk['playground']['googleads']['read-customer'](input),\n});\n\nexport const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({\n queryKey: ['playground', 'lifecycle', 'get-state', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['get-state'](input),\n});\n\nexport const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({\n queryKey: ['playground', 'lifecycle', 'list-events', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['list-events'](input),\n});\n\nexport const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({\n queryKey: ['playground', 'webhook', 'get-last', input] as const,\n queryFn: () => sdk['playground']['webhook']['get-last'](input),\n});\n"]}
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Building a Lessly App
|
|
2
|
+
|
|
3
|
+
This is the entry point for building a Lessly **App** with `@lessly/sdk-app`.
|
|
4
|
+
Read this file first, then `rules.md`, then whichever recipe under `recipes/`
|
|
5
|
+
matches the task in front of you.
|
|
6
|
+
|
|
7
|
+
This path is stable: every scaffolded app's `AGENTS.md` points agents at
|
|
8
|
+
`node_modules/@lessly/sdk-app/docs/README.md`. It will not move or be renamed.
|
|
9
|
+
|
|
10
|
+
## What an App is
|
|
11
|
+
|
|
12
|
+
A Lessly **App** is a pure-frontend Module Federation remote built on
|
|
13
|
+
`@lessly/sdk-app`. It ships no backend, no database, and no MCP endpoint — all
|
|
14
|
+
platform data access goes through the SDK, and all identity/session state is
|
|
15
|
+
handed to it by the shell that hosts it.
|
|
16
|
+
|
|
17
|
+
Contrast this with a Lessly **extension**: an extension owns a backend
|
|
18
|
+
service, a database, and typically an MCP endpoint, and is built against the
|
|
19
|
+
extensions-guide contracts (`MFST-*`, `PRD-*`, `MCP-*`, etc.). An App has none
|
|
20
|
+
of that surface. If your task involves a database migration, a service-to-service
|
|
21
|
+
scope, or an MCP tool, you are building an extension, not an App — this guide
|
|
22
|
+
does not apply.
|
|
23
|
+
|
|
24
|
+
## Hard boundaries
|
|
25
|
+
|
|
26
|
+
- **Frontend-only.** No server process, no database, no MCP endpoint ships with
|
|
27
|
+
an App.
|
|
28
|
+
- **Data only via `@lessly/sdk-app`.** All platform API calls go through the SDK
|
|
29
|
+
client (`createLesslyApp`) or its generated query/mutation option factories.
|
|
30
|
+
No direct `fetch` to a platform host, no other HTTP client for platform data.
|
|
31
|
+
- **Auth is ambient.** The hosting shell owns tokens, login, refresh, and
|
|
32
|
+
product switching. An App reads the active product from props or the
|
|
33
|
+
`X-Product-Id` header — never from a token — and must not implement its own
|
|
34
|
+
auth.
|
|
35
|
+
- **Manifest is `lessly.app.yaml`, schema v1.** Exactly five top-level fields:
|
|
36
|
+
`app_schema_version: 1`, `id`, `title`, `version`, `nav` (with `nav.icon`).
|
|
37
|
+
No backend or extension manifest field (`s2s`, `webhooks`, `billing`,
|
|
38
|
+
`analytics`, `routing`, ...) is valid here.
|
|
39
|
+
|
|
40
|
+
## Quickstart
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
npm create lessly-app@latest my-app
|
|
44
|
+
cd my-app
|
|
45
|
+
pnpm dev
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The generated manifest (`lessly.app.yaml`) is the full v1 surface:
|
|
49
|
+
|
|
50
|
+
```yaml
|
|
51
|
+
app_schema_version: 1
|
|
52
|
+
id: my-app
|
|
53
|
+
title: My App
|
|
54
|
+
version: 0.1.0
|
|
55
|
+
nav:
|
|
56
|
+
icon: flask
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Your app's Module Federation remote exposes a single React component at
|
|
60
|
+
`./App`. The scaffold wires this up for you; see `recipes/federation.md` if
|
|
61
|
+
you need to touch it directly.
|
|
62
|
+
|
|
63
|
+
## Map of `docs/`
|
|
64
|
+
|
|
65
|
+
| File | Read when… |
|
|
66
|
+
| --- | --- |
|
|
67
|
+
| `rules.md` | Always — normative `APP-*` rules. Read this first, before writing any code. |
|
|
68
|
+
| `recipes/sdk-usage.md` | You need to call the platform API: creating the SDK client, handling `LesslyApiError`, using the generated `*QueryOptions`/`*MutationOptions` factories. |
|
|
69
|
+
| `recipes/federation.md` | You're touching the Module Federation setup: shared singletons, the dual-mode build, the `./navigation` expose. |
|
|
70
|
+
| `recipes/local-dev.md` | You're running the app locally: the dev proxy, device-code login, `.env.local`, or composing your app under a local shell. |
|
|
71
|
+
|
|
72
|
+
## Keeping this guide current
|
|
73
|
+
|
|
74
|
+
This guide ships inside `@lessly/sdk-app` itself, so updating the SDK updates
|
|
75
|
+
the guide in the same step:
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
npm i @lessly/sdk-app@latest
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Always use the `@latest` form (not `npm update`) — see `rules.md` APP-007 for
|
|
82
|
+
why.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Recipe: Module Federation setup
|
|
2
|
+
|
|
3
|
+
How to wire the Module Federation contract an App must implement (APP-004).
|
|
4
|
+
This page shows the *how*; for exact wording, rationale, and examples of the
|
|
5
|
+
shared rules, see the referenced `FED-*` IDs in the extensions-guide — this
|
|
6
|
+
recipe does not restate them.
|
|
7
|
+
|
|
8
|
+
## Expose `./App` (and optionally `./navigation`)
|
|
9
|
+
|
|
10
|
+
Your app's federation config exposes a single React component at `./App`
|
|
11
|
+
(FED-001) plus, optionally, a data-only `./navigation` module for the shell's
|
|
12
|
+
sidebar (FED-011, nav contract v2). `./navigation` MUST be React-free — it's a
|
|
13
|
+
plain data module the shell can idle-preload without pulling in your app's
|
|
14
|
+
React tree:
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
// vite.config.ts (federation mode only)
|
|
18
|
+
federation({
|
|
19
|
+
name: APP_NAME, // MUST equal the manifest `id` (FED-004)
|
|
20
|
+
filename: 'remoteEntry.js',
|
|
21
|
+
manifest: true,
|
|
22
|
+
exposes: {
|
|
23
|
+
'./App': './src/federation/app-remote.tsx',
|
|
24
|
+
// Data-only, React-free menu contract (FED-011, nav v2). Optional per
|
|
25
|
+
// contract; the shell idle-preloads it for the sidebar menu.
|
|
26
|
+
'./navigation': './src/federation/navigation.ts',
|
|
27
|
+
},
|
|
28
|
+
shared: SHARED,
|
|
29
|
+
});
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Shared singletons: `>=` floors, not carets, on 0.x packages
|
|
33
|
+
|
|
34
|
+
`react`, `react-dom`, `react-router`, and `@lessly/ui` MUST be declared as
|
|
35
|
+
shared singletons, never bundled (FED-005), pinned via `@module-federation/vite`
|
|
36
|
+
at exactly `1.16.12` (FED-006):
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const SHARED = {
|
|
40
|
+
react: { singleton: true, strictVersion: false, requiredVersion: '^19' },
|
|
41
|
+
'react-dom': { singleton: true, strictVersion: false, requiredVersion: '^19' },
|
|
42
|
+
'react-router': { singleton: true, strictVersion: false, requiredVersion: '^7.18' },
|
|
43
|
+
// 0.x singletons use a `>=` floor, NOT a caret: `^0.x` resolves to `<0.(x+1).0`,
|
|
44
|
+
// so a routine shell ui/icon bump would fail Module Federation version negotiation.
|
|
45
|
+
'@lessly/ui': { singleton: true, strictVersion: false, requiredVersion: '>=0.1.0' },
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
`@lessly/ui` is pre-1.0. A caret range on a 0.x package (`^0.1.0`) resolves to
|
|
50
|
+
`<0.2.0`, so the next time the shell bumps `@lessly/ui`'s minor version, MF
|
|
51
|
+
version negotiation fails and your remote won't load under the shell. Use a
|
|
52
|
+
`>=` floor for every 0.x shared singleton instead — it only guarantees a
|
|
53
|
+
minimum, so it survives minor bumps upstream. Any other 0.x singleton you add
|
|
54
|
+
(e.g. an icon package) follows the same rule.
|
|
55
|
+
|
|
56
|
+
## Dual build: standalone + federation, merged into one `dist/`
|
|
57
|
+
|
|
58
|
+
The build MUST produce one merged dual-mode `dist/` covering both standalone
|
|
59
|
+
and federation artifacts (FED-007): a standalone build (plain SPA, `base: '/'`)
|
|
60
|
+
and a federation build (`base: '/~/<id>/'`, emits `remoteEntry.js` +
|
|
61
|
+
`mf-manifest.json`), merged so both coexist:
|
|
62
|
+
|
|
63
|
+
```jsonc
|
|
64
|
+
// package.json scripts
|
|
65
|
+
{
|
|
66
|
+
"build": "tsc -b && pnpm build:standalone && pnpm build:federation && pnpm build:merge",
|
|
67
|
+
"build:standalone": "vite build",
|
|
68
|
+
"build:federation": "vite build --mode federation",
|
|
69
|
+
"build:merge": "node scripts/merge-federation-dist.mjs"
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
// vite.config.ts
|
|
75
|
+
export default defineConfig(({ mode }) => {
|
|
76
|
+
const isFederation = mode === 'federation';
|
|
77
|
+
return {
|
|
78
|
+
base: isFederation ? `/~/${APP_NAME}/` : '/',
|
|
79
|
+
build: {
|
|
80
|
+
outDir: isFederation ? 'dist-federation' : 'dist',
|
|
81
|
+
emptyOutDir: true,
|
|
82
|
+
},
|
|
83
|
+
// ...
|
|
84
|
+
};
|
|
85
|
+
});
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The merge step copies `dist-federation/*` into `dist/`, keeping the
|
|
89
|
+
**standalone** `index.html` (not the federation one) and failing loudly on any
|
|
90
|
+
filename collision with differing content, then removes `dist-federation/`.
|
|
91
|
+
The result: one `dist/` that serves the standalone SPA at `/` and the
|
|
92
|
+
federation remote entry + assets at `/~/<id>/`.
|
|
93
|
+
|
|
94
|
+
## Absolute asset base in federation mode
|
|
95
|
+
|
|
96
|
+
The asset base in federation mode is the absolute path `/~/<id>/` — not a
|
|
97
|
+
relative path, and `<id>` MUST match the manifest `id` and the MF `name`
|
|
98
|
+
(FED-004). Getting this wrong breaks asset resolution once the shell mounts
|
|
99
|
+
your remote at that path.
|
|
100
|
+
|
|
101
|
+
## Fast Refresh under a local shell
|
|
102
|
+
|
|
103
|
+
When developing your remote composed under a local shell (`vite --mode
|
|
104
|
+
federation`), point `reactRefreshHost` at the shell's dev origin so React Fast
|
|
105
|
+
Refresh works through the federation boundary:
|
|
106
|
+
|
|
107
|
+
```ts
|
|
108
|
+
react(isFederation ? { reactRefreshHost: shellDevOrigin } : {})
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
See `recipes/local-dev.md` for how to run this composed setup end to end.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Recipe: running an App locally
|
|
2
|
+
|
|
3
|
+
How to run an App standalone and, when needed, composed under a local shell.
|
|
4
|
+
Auth stays ambient in both modes (APP-005) — you never implement login or
|
|
5
|
+
token handling yourself.
|
|
6
|
+
|
|
7
|
+
## Standalone: `pnpm dev`
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm dev
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
This starts the app on its own, outside any shell, proxied through
|
|
14
|
+
`@lessly/app-dev`'s local dev server. Platform API calls made through your
|
|
15
|
+
`sdk` (created with `createLesslyApp`, see `recipes/sdk-usage.md`) are
|
|
16
|
+
forwarded through a bearer proxy at exactly this path:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
/lessly-api
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
`@lessly/app-dev` attaches your locally stored bearer token to everything it
|
|
23
|
+
proxies through `/lessly-api`, so your SDK client just talks to that path in
|
|
24
|
+
dev — it never sees or handles the token itself.
|
|
25
|
+
|
|
26
|
+
### Device-code login
|
|
27
|
+
|
|
28
|
+
The first time you run `pnpm dev` (or once your local session expires),
|
|
29
|
+
`@lessly/app-dev` walks you through a device-code login: it prints a
|
|
30
|
+
verification URL and a short code, opens your browser, and polls until you
|
|
31
|
+
approve. Once approved, it stores the resulting bearer token locally and the
|
|
32
|
+
`/lessly-api` proxy starts attaching it automatically. You don't write any of
|
|
33
|
+
this — it's ambient, per APP-005: an App MUST NOT implement its own login,
|
|
34
|
+
token handling, or refresh.
|
|
35
|
+
|
|
36
|
+
### `.env.local`
|
|
37
|
+
|
|
38
|
+
Set which product your local session targets:
|
|
39
|
+
|
|
40
|
+
```sh
|
|
41
|
+
# .env.local
|
|
42
|
+
VITE_PRODUCT_ID=prod_123
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Vite does not load `.env.example` — copy it to `.env.local` and edit the
|
|
46
|
+
value. `.env.local` is per-developer and untracked; don't commit it.
|
|
47
|
+
|
|
48
|
+
### The stub `user` prop
|
|
49
|
+
|
|
50
|
+
In dev-standalone, the `user` prop your app receives is a **stub**:
|
|
51
|
+
`{ id: <from the local dev JWT>, displayName: 'Dev User' }`. It is not a real
|
|
52
|
+
session — it exists only so you have *something* to render while developing
|
|
53
|
+
outside a shell. Per APP-005, don't build any behavior on `user` beyond
|
|
54
|
+
display (a name badge, an avatar fallback). The real, shell-authenticated
|
|
55
|
+
user only arrives once your app is composed via federation, through the
|
|
56
|
+
`./App` props — code that branches on `user` for anything beyond display will
|
|
57
|
+
work in dev-standalone and misbehave once composed under a real shell.
|
|
58
|
+
|
|
59
|
+
## Composed: running under a local shell
|
|
60
|
+
|
|
61
|
+
To see your app the way it will actually render — composed under the shell,
|
|
62
|
+
receiving real federation props — run:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
pnpm dev:shell
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This builds/serves your remote in federation mode (`vite --mode federation`,
|
|
69
|
+
see `recipes/federation.md`) and points it at a local or staging shell for
|
|
70
|
+
Fast Refresh (`reactRefreshHost`).
|
|
71
|
+
|
|
72
|
+
### Pointing a staging shell at your local remote
|
|
73
|
+
|
|
74
|
+
To make a **staging** shell load your app from your local dev server instead
|
|
75
|
+
of its deployed remote, set this in the shell's browser `localStorage`
|
|
76
|
+
(**staging only** — this override does not exist in production):
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
localStorage['lessly:dev-remote'] = "<slug>=<origin>"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`<slug>` is your app's manifest `id`; `<origin>` is your local dev server's
|
|
83
|
+
origin (e.g. `http://localhost:5173`). For example:
|
|
84
|
+
|
|
85
|
+
```js
|
|
86
|
+
localStorage['lessly:dev-remote'] = 'my-app=http://localhost:5173';
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Reload the staging shell after setting this — it reads the override at
|
|
90
|
+
startup and fetches your remote entry from `<origin>` instead of the deployed
|
|
91
|
+
one for the app matching `<slug>`. Remove the key (or clear `localStorage`) to
|
|
92
|
+
go back to the deployed remote.
|
|
93
|
+
|
|
94
|
+
## Keeping your local setup current
|
|
95
|
+
|
|
96
|
+
Update the SDK and `@lessly/app-dev` with the `@latest` form, never `npm
|
|
97
|
+
update`:
|
|
98
|
+
|
|
99
|
+
```sh
|
|
100
|
+
npm i @lessly/sdk-app@latest
|
|
101
|
+
npm i @lessly/app-dev@latest
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
`@lessly/sdk-app` and `@lessly/app-dev` are pre-1.0 and pinned with caret
|
|
105
|
+
ranges, so `npm update` never crosses a minor version — and since the SDK
|
|
106
|
+
bumps its minor version whenever the platform ships a new tool, `npm update`
|
|
107
|
+
would never actually deliver those updates (see APP-007).
|