services-as-software 0.1.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/.turbo/turbo-build.log +5 -0
  2. package/CHANGELOG.md +10 -0
  3. package/README.md +235 -225
  4. package/dist/client.d.ts +25 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/client.js +103 -0
  7. package/dist/client.js.map +1 -0
  8. package/dist/endpoint.d.ts +102 -0
  9. package/dist/endpoint.d.ts.map +1 -0
  10. package/dist/endpoint.js +96 -0
  11. package/dist/endpoint.js.map +1 -0
  12. package/dist/entities/billing.d.ts +60 -0
  13. package/dist/entities/billing.d.ts.map +1 -0
  14. package/dist/entities/billing.js +954 -0
  15. package/dist/entities/billing.js.map +1 -0
  16. package/dist/entities/customers.d.ts +45 -0
  17. package/dist/entities/customers.d.ts.map +1 -0
  18. package/dist/entities/customers.js +679 -0
  19. package/dist/entities/customers.js.map +1 -0
  20. package/dist/entities/delivery.d.ts +59 -0
  21. package/dist/entities/delivery.d.ts.map +1 -0
  22. package/dist/entities/delivery.js +890 -0
  23. package/dist/entities/delivery.js.map +1 -0
  24. package/dist/entities/index.d.ts +114 -0
  25. package/dist/entities/index.d.ts.map +1 -0
  26. package/dist/entities/index.js +89 -0
  27. package/dist/entities/index.js.map +1 -0
  28. package/dist/entities/operations.d.ts +59 -0
  29. package/dist/entities/operations.d.ts.map +1 -0
  30. package/dist/entities/operations.js +1010 -0
  31. package/dist/entities/operations.js.map +1 -0
  32. package/dist/entities/orchestration.d.ts +52 -0
  33. package/dist/entities/orchestration.d.ts.map +1 -0
  34. package/dist/entities/orchestration.js +883 -0
  35. package/dist/entities/orchestration.js.map +1 -0
  36. package/dist/entities/services.d.ts +50 -0
  37. package/dist/entities/services.d.ts.map +1 -0
  38. package/dist/entities/services.js +805 -0
  39. package/dist/entities/services.js.map +1 -0
  40. package/dist/helpers.d.ts +362 -0
  41. package/dist/helpers.d.ts.map +1 -0
  42. package/dist/helpers.js +400 -0
  43. package/dist/helpers.js.map +1 -0
  44. package/dist/index.d.ts +17 -215
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +18 -172
  47. package/dist/index.js.map +1 -0
  48. package/dist/provider.d.ts +85 -0
  49. package/dist/provider.d.ts.map +1 -0
  50. package/dist/provider.js +158 -0
  51. package/dist/provider.js.map +1 -0
  52. package/dist/service.d.ts +43 -0
  53. package/dist/service.d.ts.map +1 -0
  54. package/dist/service.js +206 -0
  55. package/dist/service.js.map +1 -0
  56. package/dist/types.d.ts +469 -0
  57. package/dist/types.d.ts.map +1 -0
  58. package/dist/types.js +5 -0
  59. package/dist/types.js.map +1 -0
  60. package/examples/client-usage.ts +82 -0
  61. package/examples/translation-service.ts +227 -0
  62. package/package.json +24 -38
  63. package/src/client.ts +132 -0
  64. package/src/endpoint.ts +144 -0
  65. package/src/entities/billing.ts +1037 -0
  66. package/src/entities/customers.ts +740 -0
  67. package/src/entities/delivery.ts +974 -0
  68. package/src/entities/index.ts +157 -0
  69. package/src/entities/operations.ts +1099 -0
  70. package/src/entities/orchestration.ts +956 -0
  71. package/src/entities/services.ts +872 -0
  72. package/src/helpers.ts +474 -0
  73. package/src/index.ts +97 -0
  74. package/src/provider.ts +183 -0
  75. package/src/service.test.ts +195 -0
  76. package/src/service.ts +266 -0
  77. package/src/types.ts +543 -0
  78. package/tsconfig.json +9 -0
@@ -0,0 +1,157 @@
1
+ /**
2
+ * Services-as-Software Entity Types (Nouns)
3
+ *
4
+ * Comprehensive entity definitions for AI-delivered productized services.
5
+ * Each entity follows the Noun pattern with Properties, Actions, and Events.
6
+ *
7
+ * Categories:
8
+ * - services: Core service entities (ProductizedService, ServiceOffering, ServicePlan, ServiceInstance, ServiceExecution)
9
+ * - delivery: AI delivery mechanics (AgentDelivery, AutonomyLevel, EscalationRule, ConfidenceThreshold, HumanHandoff, QualityGate)
10
+ * - billing: Billing & commerce (ServiceQuote, ServiceOrder, ServiceSubscription, Usage, Invoice, Payment)
11
+ * - operations: Service operations (SLA, SLO, ServiceIncident, SupportTicket, ServiceFeedback, ServiceMetric)
12
+ * - customers: Customer entities (ServiceCustomer, ServiceEntitlement, CustomerUsage, CustomerSegment)
13
+ * - orchestration: Service orchestration (ServiceWorkflow, WorkflowStep, ServiceTask, ServiceQueue, ServiceWorker)
14
+ *
15
+ * @packageDocumentation
16
+ */
17
+
18
+ // =============================================================================
19
+ // Services (Core service entities)
20
+ // =============================================================================
21
+
22
+ export {
23
+ ProductizedService,
24
+ ServiceOffering,
25
+ ServicePlan,
26
+ ServiceInstance,
27
+ ServiceExecution,
28
+ ServiceEntities,
29
+ ServiceCategories,
30
+ } from './services.js'
31
+
32
+ // =============================================================================
33
+ // Delivery (AI delivery mechanics)
34
+ // =============================================================================
35
+
36
+ export {
37
+ AgentDelivery,
38
+ AutonomyLevel,
39
+ EscalationRule,
40
+ ConfidenceThreshold,
41
+ HumanHandoff,
42
+ QualityGate,
43
+ DeliveryEntities,
44
+ DeliveryCategories,
45
+ } from './delivery.js'
46
+
47
+ // =============================================================================
48
+ // Billing (Billing & commerce)
49
+ // =============================================================================
50
+
51
+ export {
52
+ ServiceQuote,
53
+ ServiceOrder,
54
+ ServiceSubscription,
55
+ Usage,
56
+ Invoice,
57
+ Payment,
58
+ BillingEntities,
59
+ BillingCategories,
60
+ } from './billing.js'
61
+
62
+ // =============================================================================
63
+ // Operations (Service operations)
64
+ // =============================================================================
65
+
66
+ export {
67
+ SLA,
68
+ SLO,
69
+ ServiceIncident,
70
+ SupportTicket,
71
+ ServiceFeedback,
72
+ ServiceMetric,
73
+ OperationsEntities,
74
+ OperationsCategories,
75
+ } from './operations.js'
76
+
77
+ // =============================================================================
78
+ // Customers (Customer entities)
79
+ // =============================================================================
80
+
81
+ export {
82
+ ServiceCustomer,
83
+ ServiceEntitlement,
84
+ CustomerUsage,
85
+ CustomerSegment,
86
+ CustomerEntities,
87
+ CustomerCategories,
88
+ } from './customers.js'
89
+
90
+ // =============================================================================
91
+ // Orchestration (Service orchestration)
92
+ // =============================================================================
93
+
94
+ export {
95
+ ServiceWorkflow,
96
+ WorkflowStep,
97
+ ServiceTask,
98
+ ServiceQueue,
99
+ ServiceWorker,
100
+ OrchestrationEntities,
101
+ OrchestrationCategories,
102
+ } from './orchestration.js'
103
+
104
+ // =============================================================================
105
+ // All Entities Collection
106
+ // =============================================================================
107
+
108
+ import { ServiceEntities } from './services.js'
109
+ import { DeliveryEntities } from './delivery.js'
110
+ import { BillingEntities } from './billing.js'
111
+ import { OperationsEntities } from './operations.js'
112
+ import { CustomerEntities } from './customers.js'
113
+ import { OrchestrationEntities } from './orchestration.js'
114
+
115
+ /**
116
+ * All services-as-software entities organized by category
117
+ */
118
+ export const AllServiceEntities = {
119
+ services: ServiceEntities,
120
+ delivery: DeliveryEntities,
121
+ billing: BillingEntities,
122
+ operations: OperationsEntities,
123
+ customers: CustomerEntities,
124
+ orchestration: OrchestrationEntities,
125
+ } as const
126
+
127
+ /**
128
+ * All entity category names
129
+ */
130
+ export const ServiceEntityCategories = [
131
+ 'services',
132
+ 'delivery',
133
+ 'billing',
134
+ 'operations',
135
+ 'customers',
136
+ 'orchestration',
137
+ ] as const
138
+
139
+ export type ServiceEntityCategory = (typeof ServiceEntityCategories)[number]
140
+
141
+ /**
142
+ * Flat list of all entities for quick access
143
+ */
144
+ export const Entities = {
145
+ // Services
146
+ ...ServiceEntities,
147
+ // Delivery
148
+ ...DeliveryEntities,
149
+ // Billing
150
+ ...BillingEntities,
151
+ // Operations
152
+ ...OperationsEntities,
153
+ // Customers
154
+ ...CustomerEntities,
155
+ // Orchestration
156
+ ...OrchestrationEntities,
157
+ } as const