@lssm/example.service-business-os 0.0.0-canary-20251217083314 → 0.0.0-canary-20251219202229
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 +21 -0
- package/dist/client/client.contracts.d.ts +19 -18
- package/dist/client/client.contracts.d.ts.map +1 -0
- package/dist/client/client.contracts.js +2 -1
- package/dist/client/client.contracts.js.map +1 -0
- package/dist/client/client.schema.d.ts +18 -17
- package/dist/client/client.schema.d.ts.map +1 -0
- package/dist/client/client.schema.js +18 -19
- package/dist/client/client.schema.js.map +1 -0
- package/dist/docs/service-business-os.docblock.js +2 -1
- package/dist/docs/service-business-os.docblock.js.map +1 -0
- package/dist/entities/index.d.ts +157 -156
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +98 -98
- package/dist/entities/index.js.map +1 -0
- package/dist/events.d.ts +91 -90
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +32 -33
- package/dist/events.js.map +1 -0
- package/dist/example.d.ts +2 -1
- package/dist/example.d.ts.map +1 -0
- package/dist/example.js +2 -1
- package/dist/example.js.map +1 -0
- package/dist/handlers/index.d.ts +2 -1
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +2 -1
- package/dist/handlers/index.js.map +1 -0
- package/dist/invoice/invoice.contracts.d.ts +19 -18
- package/dist/invoice/invoice.contracts.d.ts.map +1 -0
- package/dist/invoice/invoice.contracts.js +2 -1
- package/dist/invoice/invoice.contracts.js.map +1 -0
- package/dist/invoice/invoice.schema.d.ts +18 -17
- package/dist/invoice/invoice.schema.d.ts.map +1 -0
- package/dist/invoice/invoice.schema.js +18 -19
- package/dist/invoice/invoice.schema.js.map +1 -0
- package/dist/job/job.contracts.d.ts +64 -63
- package/dist/job/job.contracts.d.ts.map +1 -0
- package/dist/job/job.contracts.js +10 -11
- package/dist/job/job.contracts.js.map +1 -0
- package/dist/job/job.schema.d.ts +22 -21
- package/dist/job/job.schema.d.ts.map +1 -0
- package/dist/job/job.schema.js +22 -23
- package/dist/job/job.schema.js.map +1 -0
- package/dist/libs/contracts/dist/capabilities/openbanking.js +2 -1
- package/dist/libs/contracts/dist/capabilities/openbanking.js.map +1 -0
- package/dist/libs/contracts/dist/contract-registry/schemas.js +2 -1
- package/dist/libs/contracts/dist/contract-registry/schemas.js.map +1 -0
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/accessibility_wcag_compliance_specs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/index.js +2 -6
- package/dist/libs/contracts/dist/docs/meta.docs.js +30 -0
- package/dist/libs/contracts/dist/docs/meta.docs.js.map +1 -0
- package/dist/libs/contracts/dist/docs/presentations.js +2 -1
- package/dist/libs/contracts/dist/docs/presentations.js.map +1 -0
- package/dist/libs/contracts/dist/docs/registry.js +2 -1
- package/dist/libs/contracts/dist/docs/registry.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/auth/better-auth-nextjs.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/contracts/openapi-export.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/lifecycle-stage-system.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/llm/llm-integration.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/mcp-endpoints.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/presentation-runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/schema/README.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-events.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/learning-journeys.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/platform-admin-panel.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-access-teams.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/project-routing.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/sandbox-unlogged.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/team-invitations.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspace-ops.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/studio/workspaces.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/telemetry-ingest.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/templates/runtime.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/vscode-extension.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js +2 -1
- package/dist/libs/contracts/dist/docs/tech/workflows/overview.docblock.js.map +1 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js +97 -0
- package/dist/libs/contracts/dist/docs/tech-contracts.docs.js.map +1 -0
- package/dist/libs/contracts/dist/events.js +2 -1
- package/dist/libs/contracts/dist/events.js.map +1 -0
- package/dist/libs/contracts/dist/index.js +2 -1
- package/dist/libs/contracts/dist/integrations/contracts.js +65 -66
- package/dist/libs/contracts/dist/integrations/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js +31 -32
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/accounts.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js +18 -19
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/balances.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js +32 -33
- package/dist/libs/contracts/dist/integrations/openbanking/contracts/transactions.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/models.js +60 -61
- package/dist/libs/contracts/dist/integrations/openbanking/models.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js +2 -1
- package/dist/libs/contracts/dist/integrations/openbanking/telemetry.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/elevenlabs.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gcs-storage.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/gmail.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/gmail.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/google-calendar.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/mistral.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/mistral.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/postmark.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/postmark.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/powens.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/powens.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/qdrant.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/stripe.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/stripe.js.map +1 -0
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js +2 -1
- package/dist/libs/contracts/dist/integrations/providers/twilio-sms.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/contracts.js +44 -45
- package/dist/libs/contracts/dist/knowledge/contracts.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/email-threads.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-docs.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/financial-overview.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/product-canon.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/support-faq.js.map +1 -0
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js +2 -1
- package/dist/libs/contracts/dist/knowledge/spaces/uploaded-docs.js.map +1 -0
- package/dist/libs/contracts/dist/llm/exporters.js +2 -1
- package/dist/libs/contracts/dist/llm/exporters.js.map +1 -0
- package/dist/libs/contracts/dist/onboarding-base.js +22 -23
- package/dist/libs/contracts/dist/onboarding-base.js.map +1 -0
- package/dist/libs/contracts/dist/ownership.js +4 -2
- package/dist/libs/contracts/dist/ownership.js.map +1 -0
- package/dist/libs/contracts/dist/presentations.v2.js +2 -1
- package/dist/libs/contracts/dist/presentations.v2.js.map +1 -0
- package/dist/libs/contracts/dist/regenerator/service.js +2 -1
- package/dist/libs/contracts/dist/regenerator/service.js.map +1 -0
- package/dist/libs/contracts/dist/schema/dist/index.js +3873 -6
- package/dist/libs/contracts/dist/schema/dist/index.js.map +1 -0
- package/dist/libs/contracts/dist/spec.js +2 -1
- package/dist/libs/contracts/dist/spec.js.map +1 -0
- package/dist/libs/schema/dist/index.js +4889 -6
- package/dist/libs/schema/dist/index.js.map +1 -0
- package/dist/payment/payment.contracts.d.ts +18 -17
- package/dist/payment/payment.contracts.d.ts.map +1 -0
- package/dist/payment/payment.contracts.js +2 -1
- package/dist/payment/payment.contracts.js.map +1 -0
- package/dist/payment/payment.schema.d.ts +17 -16
- package/dist/payment/payment.schema.d.ts.map +1 -0
- package/dist/payment/payment.schema.js +17 -18
- package/dist/payment/payment.schema.js.map +1 -0
- package/dist/presentations/index.d.ts +2 -1
- package/dist/presentations/index.d.ts.map +1 -0
- package/dist/presentations/index.js +2 -1
- package/dist/presentations/index.js.map +1 -0
- package/dist/presentations.d.ts +2 -1
- package/dist/presentations.d.ts.map +1 -0
- package/dist/presentations.js +2 -1
- package/dist/presentations.js.map +1 -0
- package/dist/quote/quote.contracts.d.ts +37 -36
- package/dist/quote/quote.contracts.d.ts.map +1 -0
- package/dist/quote/quote.contracts.js +2 -1
- package/dist/quote/quote.contracts.js.map +1 -0
- package/dist/quote/quote.schema.d.ts +26 -25
- package/dist/quote/quote.schema.d.ts.map +1 -0
- package/dist/quote/quote.schema.js +26 -27
- package/dist/quote/quote.schema.js.map +1 -0
- package/dist/service.feature.d.ts +2 -1
- package/dist/service.feature.d.ts.map +1 -0
- package/dist/service.feature.js +2 -1
- package/dist/service.feature.js.map +1 -0
- package/package.json +13 -12
- package/dist/libs/contracts/dist/docs/PUBLISHING.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_1_QUICKSTART.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.js +0 -16
- package/dist/libs/contracts/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.js +0 -16
- package/dist/libs/contracts/dist/schema/dist/EnumType.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/FieldType.js +0 -49
- package/dist/libs/contracts/dist/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/contracts/dist/schema/dist/SchemaModel.js +0 -34
- package/dist/libs/contracts/dist/schema/dist/entity/defineEntity.js +0 -1
- package/dist/libs/contracts/dist/schema/dist/entity/index.js +0 -2
- package/dist/libs/contracts/dist/schema/dist/entity/types.js +0 -1
- package/dist/libs/schema/dist/EnumType.js +0 -2
- package/dist/libs/schema/dist/FieldType.js +0 -49
- package/dist/libs/schema/dist/ScalarTypeEnum.js +0 -236
- package/dist/libs/schema/dist/SchemaModel.js +0 -39
- package/dist/libs/schema/dist/entity/defineEntity.js +0 -236
- package/dist/libs/schema/dist/entity/index.js +0 -2
- package/dist/libs/schema/dist/entity/types.js +0 -1
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema308 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts12 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/invoice/invoice.contracts.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Issue an invoice.
|
|
7
7
|
*/
|
|
8
|
-
declare const IssueInvoiceContract:
|
|
8
|
+
declare const IssueInvoiceContract: _lssm_lib_contracts12.ContractSpec<_lssm_lib_schema308.SchemaModel<{
|
|
9
9
|
jobId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
dueDate: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema308.FieldType<Date, string>;
|
|
15
15
|
isOptional: true;
|
|
16
16
|
};
|
|
17
17
|
notes: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
19
19
|
isOptional: true;
|
|
20
20
|
};
|
|
21
21
|
lineItems: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema308.FieldType<unknown, unknown>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
|
-
}>,
|
|
25
|
+
}>, _lssm_lib_schema308.SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
jobId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
invoiceNumber: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
amount: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema308.FieldType<number, number>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
currency: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
status: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema308.FieldType<string, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
dueDate: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema308.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
issuedAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema308.FieldType<Date, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
paidAt: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema308.FieldType<Date, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
}>, undefined>;
|
|
63
63
|
//#endregion
|
|
64
|
-
export { IssueInvoiceContract };
|
|
64
|
+
export { IssueInvoiceContract };
|
|
65
|
+
//# sourceMappingURL=invoice.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.contracts.d.ts","names":[],"sources":["../../src/invoice/invoice.contracts.ts"],"sourcesContent":[],"mappings":";;;;;;;cAQa,4CAAoB,iCAAA;EAApB,KAAA,EAAA;IAgBX,IAAA,EAAA,mBAAA,CAAA,SAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;oBAhB+B;EAAA,CAAA;;;;;;;;;;;UAAA,mBAAA,CAAA;;;EAAA,KAAA,EAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.contracts.js","names":[],"sources":["../../src/invoice/invoice.contracts.ts"],"sourcesContent":["import { defineCommand } from '@lssm/lib.contracts';\nimport { InvoiceModel, IssueInvoiceInputModel } from './invoice.schema';\n\nconst OWNERS = ['@examples.service-business-os'] as const;\n\n/**\n * Issue an invoice.\n */\nexport const IssueInvoiceContract = defineCommand({\n meta: {\n name: 'service.invoice.issue',\n version: 1,\n stability: 'stable',\n owners: [...OWNERS],\n tags: ['service-business-os', 'invoice', 'issue'],\n description: 'Issue an invoice for a job.',\n goal: 'Bill clients.',\n context: 'Billing.',\n },\n io: {\n input: IssueInvoiceInputModel,\n output: InvoiceModel,\n },\n policy: { auth: 'user' },\n});\n"],"mappings":";;;;;AAGA,MAAM,SAAS,CAAC,gCAAgC;;;;AAKhD,MAAa,uBAAuB,cAAc;CAChD,MAAM;EACJ,MAAM;EACN,SAAS;EACT,WAAW;EACX,QAAQ,CAAC,GAAG,OAAO;EACnB,MAAM;GAAC;GAAuB;GAAW;GAAQ;EACjD,aAAa;EACb,MAAM;EACN,SAAS;EACV;CACD,IAAI;EACF,OAAO;EACP,QAAQ;EACT;CACD,QAAQ,EAAE,MAAM,QAAQ;CACzB,CAAC"}
|
|
@@ -1,67 +1,68 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema323 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/invoice/invoice.schema.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Invoice issued for a job.
|
|
6
6
|
*/
|
|
7
|
-
declare const InvoiceModel:
|
|
7
|
+
declare const InvoiceModel: _lssm_lib_schema323.SchemaModel<{
|
|
8
8
|
id: {
|
|
9
|
-
type:
|
|
9
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
10
10
|
isOptional: false;
|
|
11
11
|
};
|
|
12
12
|
jobId: {
|
|
13
|
-
type:
|
|
13
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
14
14
|
isOptional: false;
|
|
15
15
|
};
|
|
16
16
|
invoiceNumber: {
|
|
17
|
-
type:
|
|
17
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
18
18
|
isOptional: false;
|
|
19
19
|
};
|
|
20
20
|
amount: {
|
|
21
|
-
type:
|
|
21
|
+
type: _lssm_lib_schema323.FieldType<number, number>;
|
|
22
22
|
isOptional: false;
|
|
23
23
|
};
|
|
24
24
|
currency: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
26
26
|
isOptional: false;
|
|
27
27
|
};
|
|
28
28
|
status: {
|
|
29
|
-
type:
|
|
29
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
dueDate: {
|
|
33
|
-
type:
|
|
33
|
+
type: _lssm_lib_schema323.FieldType<Date, string>;
|
|
34
34
|
isOptional: true;
|
|
35
35
|
};
|
|
36
36
|
issuedAt: {
|
|
37
|
-
type:
|
|
37
|
+
type: _lssm_lib_schema323.FieldType<Date, string>;
|
|
38
38
|
isOptional: true;
|
|
39
39
|
};
|
|
40
40
|
paidAt: {
|
|
41
|
-
type:
|
|
41
|
+
type: _lssm_lib_schema323.FieldType<Date, string>;
|
|
42
42
|
isOptional: true;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
/**
|
|
46
46
|
* Input for issuing an invoice.
|
|
47
47
|
*/
|
|
48
|
-
declare const IssueInvoiceInputModel:
|
|
48
|
+
declare const IssueInvoiceInputModel: _lssm_lib_schema323.SchemaModel<{
|
|
49
49
|
jobId: {
|
|
50
|
-
type:
|
|
50
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
51
51
|
isOptional: false;
|
|
52
52
|
};
|
|
53
53
|
dueDate: {
|
|
54
|
-
type:
|
|
54
|
+
type: _lssm_lib_schema323.FieldType<Date, string>;
|
|
55
55
|
isOptional: true;
|
|
56
56
|
};
|
|
57
57
|
notes: {
|
|
58
|
-
type:
|
|
58
|
+
type: _lssm_lib_schema323.FieldType<string, string>;
|
|
59
59
|
isOptional: true;
|
|
60
60
|
};
|
|
61
61
|
lineItems: {
|
|
62
|
-
type:
|
|
62
|
+
type: _lssm_lib_schema323.FieldType<unknown, unknown>;
|
|
63
63
|
isOptional: true;
|
|
64
64
|
};
|
|
65
65
|
}>;
|
|
66
66
|
//#endregion
|
|
67
|
-
export { InvoiceModel, IssueInvoiceInputModel };
|
|
67
|
+
export { InvoiceModel, IssueInvoiceInputModel };
|
|
68
|
+
//# sourceMappingURL=invoice.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.schema.d.ts","names":[],"sources":["../../src/invoice/invoice.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAKa,cAAA,YAiBX,sBAjBuB,WAiBvB,CAAA;EAAA,EAAA,EAAA;UAAA,mBAAA,CAAA;;;;;;;;;;;;IAjBuB,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAsBZ,UAAA,EAAA,KAAA;EASX,CAAA;;;;;;IATiC,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;cAAtB,4CAAsB;;UASjC,mBAAA,CAAA"}
|
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
-
import "../libs/schema/dist/index.js";
|
|
1
|
+
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
4
2
|
|
|
5
3
|
//#region src/invoice/invoice.schema.ts
|
|
6
4
|
/**
|
|
7
5
|
* Invoice issued for a job.
|
|
8
6
|
*/
|
|
9
|
-
const InvoiceModel =
|
|
7
|
+
const InvoiceModel = K5({
|
|
10
8
|
name: "Invoice",
|
|
11
9
|
description: "Invoice issued for a job",
|
|
12
10
|
fields: {
|
|
13
11
|
id: {
|
|
14
|
-
type:
|
|
12
|
+
type: E5.String_unsecure(),
|
|
15
13
|
isOptional: false
|
|
16
14
|
},
|
|
17
15
|
jobId: {
|
|
18
|
-
type:
|
|
16
|
+
type: E5.String_unsecure(),
|
|
19
17
|
isOptional: false
|
|
20
18
|
},
|
|
21
19
|
invoiceNumber: {
|
|
22
|
-
type:
|
|
20
|
+
type: E5.String_unsecure(),
|
|
23
21
|
isOptional: false
|
|
24
22
|
},
|
|
25
23
|
amount: {
|
|
26
|
-
type:
|
|
24
|
+
type: E5.Float_unsecure(),
|
|
27
25
|
isOptional: false
|
|
28
26
|
},
|
|
29
27
|
currency: {
|
|
30
|
-
type:
|
|
28
|
+
type: E5.String_unsecure(),
|
|
31
29
|
isOptional: false
|
|
32
30
|
},
|
|
33
31
|
status: {
|
|
34
|
-
type:
|
|
32
|
+
type: E5.String_unsecure(),
|
|
35
33
|
isOptional: false
|
|
36
34
|
},
|
|
37
35
|
dueDate: {
|
|
38
|
-
type:
|
|
36
|
+
type: E5.DateTime(),
|
|
39
37
|
isOptional: true
|
|
40
38
|
},
|
|
41
39
|
issuedAt: {
|
|
42
|
-
type:
|
|
40
|
+
type: E5.DateTime(),
|
|
43
41
|
isOptional: true
|
|
44
42
|
},
|
|
45
43
|
paidAt: {
|
|
46
|
-
type:
|
|
44
|
+
type: E5.DateTime(),
|
|
47
45
|
isOptional: true
|
|
48
46
|
}
|
|
49
47
|
}
|
|
@@ -51,28 +49,29 @@ const InvoiceModel = defineSchemaModel({
|
|
|
51
49
|
/**
|
|
52
50
|
* Input for issuing an invoice.
|
|
53
51
|
*/
|
|
54
|
-
const IssueInvoiceInputModel =
|
|
52
|
+
const IssueInvoiceInputModel = K5({
|
|
55
53
|
name: "IssueInvoiceInput",
|
|
56
54
|
description: "Input for issuing an invoice",
|
|
57
55
|
fields: {
|
|
58
56
|
jobId: {
|
|
59
|
-
type:
|
|
57
|
+
type: E5.String_unsecure(),
|
|
60
58
|
isOptional: false
|
|
61
59
|
},
|
|
62
60
|
dueDate: {
|
|
63
|
-
type:
|
|
61
|
+
type: E5.DateTime(),
|
|
64
62
|
isOptional: true
|
|
65
63
|
},
|
|
66
64
|
notes: {
|
|
67
|
-
type:
|
|
65
|
+
type: E5.String_unsecure(),
|
|
68
66
|
isOptional: true
|
|
69
67
|
},
|
|
70
68
|
lineItems: {
|
|
71
|
-
type:
|
|
69
|
+
type: E5.JSON(),
|
|
72
70
|
isOptional: true
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
|
|
77
75
|
//#endregion
|
|
78
|
-
export { InvoiceModel, IssueInvoiceInputModel };
|
|
76
|
+
export { InvoiceModel, IssueInvoiceInputModel };
|
|
77
|
+
//# sourceMappingURL=invoice.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.schema.js","names":["defineSchemaModel","ScalarTypeEnum"],"sources":["../../src/invoice/invoice.schema.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\n\n/**\n * Invoice issued for a job.\n */\nexport const InvoiceModel = defineSchemaModel({\n name: 'Invoice',\n description: 'Invoice issued for a job',\n fields: {\n id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n invoiceNumber: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n amount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n issuedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n paidAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n },\n});\n\n/**\n * Input for issuing an invoice.\n */\nexport const IssueInvoiceInputModel = defineSchemaModel({\n name: 'IssueInvoiceInput',\n description: 'Input for issuing an invoice',\n fields: {\n jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n dueDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },\n notes: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n lineItems: { type: ScalarTypeEnum.JSON(), isOptional: true },\n },\n});\n"],"mappings":";;;;;;AAKA,MAAa,eAAeA,GAAkB;CAC5C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,IAAI;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACjE,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,eAAe;GACb,MAAMA,GAAe,iBAAiB;GACtC,YAAY;GACb;EACD,QAAQ;GAAE,MAAMA,GAAe,gBAAgB;GAAE,YAAY;GAAO;EACpE,UAAU;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,QAAQ;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACrE,SAAS;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAC9D,UAAU;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAC/D,QAAQ;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAC9D;CACF,CAAC;;;;AAKF,MAAa,yBAAyBD,GAAkB;CACtD,MAAM;CACN,aAAa;CACb,QAAQ;EACN,OAAO;GAAE,MAAMC,GAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,SAAS;GAAE,MAAMA,GAAe,UAAU;GAAE,YAAY;GAAM;EAC9D,OAAO;GAAE,MAAMA,GAAe,iBAAiB;GAAE,YAAY;GAAM;EACnE,WAAW;GAAE,MAAMA,GAAe,MAAM;GAAE,YAAY;GAAM;EAC7D;CACF,CAAC"}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema338 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts13 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/job/job.contracts.d.ts
|
|
5
|
-
declare const ListJobsInputModel:
|
|
5
|
+
declare const ListJobsInputModel: _lssm_lib_schema338.SchemaModel<{
|
|
6
6
|
status: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
8
8
|
isOptional: true;
|
|
9
9
|
};
|
|
10
10
|
clientId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
12
12
|
isOptional: true;
|
|
13
13
|
};
|
|
14
14
|
limit: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
16
16
|
isOptional: true;
|
|
17
17
|
};
|
|
18
18
|
offset: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
}>;
|
|
23
|
-
declare const ListJobsOutputModel:
|
|
23
|
+
declare const ListJobsOutputModel: _lssm_lib_schema338.SchemaModel<{
|
|
24
24
|
jobs: {
|
|
25
|
-
type:
|
|
25
|
+
type: _lssm_lib_schema338.SchemaModel<{
|
|
26
26
|
id: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
quoteId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
clientId: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
title: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
status: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
scheduledAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
completedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
assignedTo: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
}>;
|
|
@@ -60,60 +60,60 @@ declare const ListJobsOutputModel: _lssm_lib_schema285.SchemaModel<{
|
|
|
60
60
|
isList: boolean;
|
|
61
61
|
};
|
|
62
62
|
total: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
|
-
declare const ListJobsOperation:
|
|
67
|
+
declare const ListJobsOperation: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema338.SchemaModel<{
|
|
68
68
|
status: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
70
70
|
isOptional: true;
|
|
71
71
|
};
|
|
72
72
|
clientId: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
74
74
|
isOptional: true;
|
|
75
75
|
};
|
|
76
76
|
limit: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
78
78
|
isOptional: true;
|
|
79
79
|
};
|
|
80
80
|
offset: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
82
82
|
isOptional: true;
|
|
83
83
|
};
|
|
84
|
-
}>,
|
|
84
|
+
}>, _lssm_lib_schema338.SchemaModel<{
|
|
85
85
|
jobs: {
|
|
86
|
-
type:
|
|
86
|
+
type: _lssm_lib_schema338.SchemaModel<{
|
|
87
87
|
id: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
quoteId: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
93
93
|
isOptional: false;
|
|
94
94
|
};
|
|
95
95
|
clientId: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
title: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
status: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
scheduledAt: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
completedAt: {
|
|
112
|
-
type:
|
|
112
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
};
|
|
115
115
|
assignedTo: {
|
|
116
|
-
type:
|
|
116
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
117
117
|
isOptional: true;
|
|
118
118
|
};
|
|
119
119
|
}>;
|
|
@@ -121,117 +121,118 @@ declare const ListJobsOperation: _lssm_lib_contracts11.ContractSpec<_lssm_lib_sc
|
|
|
121
121
|
isList: boolean;
|
|
122
122
|
};
|
|
123
123
|
total: {
|
|
124
|
-
type:
|
|
124
|
+
type: _lssm_lib_schema338.FieldType<number, number>;
|
|
125
125
|
isOptional: false;
|
|
126
126
|
};
|
|
127
127
|
}>, undefined>;
|
|
128
128
|
/**
|
|
129
129
|
* Schedule a job.
|
|
130
130
|
*/
|
|
131
|
-
declare const ScheduleJobContract:
|
|
131
|
+
declare const ScheduleJobContract: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema338.SchemaModel<{
|
|
132
132
|
quoteId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
134
134
|
isOptional: false;
|
|
135
135
|
};
|
|
136
136
|
scheduledAt: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
138
138
|
isOptional: false;
|
|
139
139
|
};
|
|
140
140
|
assignedTo: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
142
142
|
isOptional: true;
|
|
143
143
|
};
|
|
144
144
|
location: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema338.FieldType<unknown, unknown>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
};
|
|
148
148
|
title: {
|
|
149
|
-
type:
|
|
149
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
150
150
|
isOptional: true;
|
|
151
151
|
};
|
|
152
|
-
}>,
|
|
152
|
+
}>, _lssm_lib_schema338.SchemaModel<{
|
|
153
153
|
id: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
quoteId: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
clientId: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
title: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
status: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
171
171
|
isOptional: false;
|
|
172
172
|
};
|
|
173
173
|
scheduledAt: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
completedAt: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
assignedTo: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
183
183
|
isOptional: true;
|
|
184
184
|
};
|
|
185
185
|
}>, undefined>;
|
|
186
186
|
/**
|
|
187
187
|
* Complete a job.
|
|
188
188
|
*/
|
|
189
|
-
declare const CompleteJobContract:
|
|
189
|
+
declare const CompleteJobContract: _lssm_lib_contracts13.ContractSpec<_lssm_lib_schema338.SchemaModel<{
|
|
190
190
|
jobId: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
completedAt: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
notes: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
|
-
}>,
|
|
202
|
+
}>, _lssm_lib_schema338.SchemaModel<{
|
|
203
203
|
id: {
|
|
204
|
-
type:
|
|
204
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
205
205
|
isOptional: false;
|
|
206
206
|
};
|
|
207
207
|
quoteId: {
|
|
208
|
-
type:
|
|
208
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
209
209
|
isOptional: false;
|
|
210
210
|
};
|
|
211
211
|
clientId: {
|
|
212
|
-
type:
|
|
212
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
213
213
|
isOptional: false;
|
|
214
214
|
};
|
|
215
215
|
title: {
|
|
216
|
-
type:
|
|
216
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
217
217
|
isOptional: false;
|
|
218
218
|
};
|
|
219
219
|
status: {
|
|
220
|
-
type:
|
|
220
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
221
221
|
isOptional: false;
|
|
222
222
|
};
|
|
223
223
|
scheduledAt: {
|
|
224
|
-
type:
|
|
224
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
225
225
|
isOptional: true;
|
|
226
226
|
};
|
|
227
227
|
completedAt: {
|
|
228
|
-
type:
|
|
228
|
+
type: _lssm_lib_schema338.FieldType<Date, string>;
|
|
229
229
|
isOptional: true;
|
|
230
230
|
};
|
|
231
231
|
assignedTo: {
|
|
232
|
-
type:
|
|
232
|
+
type: _lssm_lib_schema338.FieldType<string, string>;
|
|
233
233
|
isOptional: true;
|
|
234
234
|
};
|
|
235
235
|
}>, undefined>;
|
|
236
236
|
//#endregion
|
|
237
|
-
export { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract };
|
|
237
|
+
export { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract };
|
|
238
|
+
//# sourceMappingURL=job.contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.contracts.d.ts","names":[],"sources":["../../src/job/job.contracts.ts"],"sourcesContent":[],"mappings":";;;;cAYa,wCAAkB;;UAS7B,mBAAA,CAAA;;EATW,CAAA;EASX,QAAA,EAAA;;;;;IAT6B,IAAA,+BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAWlB,UAAA,EAAA,IAAA;EAOX,CAAA;;;;;;cAPW,yCAAmB;;;;cAO9B,mBAAA,CAAA;;;MAP8B,OAAA,EAAA;QASnB,IAAA,+BAgBX,CAAA,MAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;;;;kBAhB4B,EAAA,KAAA;MAAA,CAAA;;;;;;;;;;;;;iBAAA,EAAA;QAAA,IAAA,+BAAA,KAAA,EAAA,MAAA,CAAA;QAuBjB,UAgBX,EAAA,IAAA;MAAA,CAAA;;;;;;qBAhB8B;IAAA,MAAA,EAAA,OAAA;;;;;;;cAvBnB,yCAAiB,iCAAA;;UAgB5B,mBAAA,CAAA;;;EAO8B,QAAA,EAAA;IAqBnB,IAAA,+BAgBX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;oBAhB8B;EAAA,CAAA;;;;;;;;;cA5CF,mBAAA,CAAA;;;MA4CE,OAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cArBnB,2CAAmB,iCAAA;;UAgB9B,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;UAhB8B,mBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBnB,2CAAmB,iCAAA;;UAgB9B,mBAAA,CAAA;;;;;;;;;;;;;UAhB8B,mBAAA,CAAA"}
|
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineSchemaModel } from "../libs/schema/dist/SchemaModel.js";
|
|
3
|
-
import "../libs/schema/dist/index.js";
|
|
1
|
+
import { E5, K5 } from "../libs/schema/dist/index.js";
|
|
4
2
|
import { defineCommand, defineQuery } from "../libs/contracts/dist/spec.js";
|
|
5
3
|
import "../libs/contracts/dist/index.js";
|
|
6
4
|
import { CompleteJobInputModel, JobModel, ScheduleJobInputModel } from "./job.schema.js";
|
|
7
5
|
|
|
8
6
|
//#region src/job/job.contracts.ts
|
|
9
7
|
const OWNERS = ["@examples.service-business-os"];
|
|
10
|
-
const ListJobsInputModel =
|
|
8
|
+
const ListJobsInputModel = K5({
|
|
11
9
|
name: "ListJobsInput",
|
|
12
10
|
description: "Input for listing jobs",
|
|
13
11
|
fields: {
|
|
14
12
|
status: {
|
|
15
|
-
type:
|
|
13
|
+
type: E5.String_unsecure(),
|
|
16
14
|
isOptional: true
|
|
17
15
|
},
|
|
18
16
|
clientId: {
|
|
19
|
-
type:
|
|
17
|
+
type: E5.String_unsecure(),
|
|
20
18
|
isOptional: true
|
|
21
19
|
},
|
|
22
20
|
limit: {
|
|
23
|
-
type:
|
|
21
|
+
type: E5.Int_unsecure(),
|
|
24
22
|
isOptional: true
|
|
25
23
|
},
|
|
26
24
|
offset: {
|
|
27
|
-
type:
|
|
25
|
+
type: E5.Int_unsecure(),
|
|
28
26
|
isOptional: true
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
|
-
const ListJobsOutputModel =
|
|
30
|
+
const ListJobsOutputModel = K5({
|
|
33
31
|
name: "ListJobsOutput",
|
|
34
32
|
description: "Output for listing jobs",
|
|
35
33
|
fields: {
|
|
@@ -39,7 +37,7 @@ const ListJobsOutputModel = defineSchemaModel({
|
|
|
39
37
|
isList: true
|
|
40
38
|
},
|
|
41
39
|
total: {
|
|
42
|
-
type:
|
|
40
|
+
type: E5.Int_unsecure(),
|
|
43
41
|
isOptional: false
|
|
44
42
|
}
|
|
45
43
|
}
|
|
@@ -116,4 +114,5 @@ const CompleteJobContract = defineCommand({
|
|
|
116
114
|
});
|
|
117
115
|
|
|
118
116
|
//#endregion
|
|
119
|
-
export { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract };
|
|
117
|
+
export { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract };
|
|
118
|
+
//# sourceMappingURL=job.contracts.js.map
|