@processfocus/plugin-xero 0.1.0-next.1 → 0.1.0-next.3

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 (62) hide show
  1. package/README.md +49 -185
  2. package/dist/index.d.ts +5 -1
  3. package/dist/index.js +5 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/contact-resolution.d.ts +2 -6
  6. package/dist/lib/contact-resolution.js +17 -5
  7. package/dist/lib/contact-resolution.js.map +1 -1
  8. package/dist/lib/errors.d.ts +4 -0
  9. package/dist/lib/errors.js.map +1 -1
  10. package/dist/lib/identities.d.ts +63 -39
  11. package/dist/lib/identities.js +36 -13
  12. package/dist/lib/identities.js.map +1 -1
  13. package/dist/lib/invoice-reconciliation.d.ts +2 -4
  14. package/dist/lib/invoice-reconciliation.js +23 -13
  15. package/dist/lib/invoice-reconciliation.js.map +1 -1
  16. package/dist/lib/money.d.ts +4 -4
  17. package/dist/lib/money.js +1 -9
  18. package/dist/lib/money.js.map +1 -1
  19. package/dist/lib/xero-configuration.d.ts +24 -0
  20. package/dist/lib/xero-configuration.js +15 -0
  21. package/dist/lib/xero-configuration.js.map +1 -0
  22. package/dist/lib/xero-draft-invoice.d.ts +39 -39
  23. package/dist/lib/xero-draft-invoice.js +25 -22
  24. package/dist/lib/xero-draft-invoice.js.map +1 -1
  25. package/dist/lib/xero-http.d.ts +1 -1
  26. package/dist/lib/xero-http.js.map +1 -1
  27. package/dist/lib/xero-invoice-cancellation-step.d.ts +16 -0
  28. package/dist/lib/xero-invoice-cancellation-step.js +17 -0
  29. package/dist/lib/xero-invoice-cancellation-step.js.map +1 -0
  30. package/dist/lib/xero-invoice-cancellation.d.ts +19 -0
  31. package/dist/lib/xero-invoice-cancellation.js +15 -0
  32. package/dist/lib/xero-invoice-cancellation.js.map +1 -0
  33. package/dist/lib/xero-invoice-live.d.ts +11 -7
  34. package/dist/lib/xero-invoice-live.js +468 -210
  35. package/dist/lib/xero-invoice-live.js.map +1 -1
  36. package/dist/lib/xero-invoice-lookup.d.ts +13 -13
  37. package/dist/lib/xero-invoice-lookup.js +1 -1
  38. package/dist/lib/xero-invoice-lookup.js.map +1 -1
  39. package/dist/lib/xero-invoice-preparation.d.ts +52 -0
  40. package/dist/lib/xero-invoice-preparation.js +47 -0
  41. package/dist/lib/xero-invoice-preparation.js.map +1 -0
  42. package/dist/lib/xero-invoice-step.d.ts +10 -3
  43. package/dist/lib/xero-invoice-step.js +4 -1
  44. package/dist/lib/xero-invoice-step.js.map +1 -1
  45. package/dist/lib/xero-invoice-test.d.ts +11 -5
  46. package/dist/lib/xero-invoice-test.js +109 -56
  47. package/dist/lib/xero-invoice-test.js.map +1 -1
  48. package/dist/lib/xero-invoice.d.ts +1 -1
  49. package/dist/lib/xero-invoice.js +2 -2
  50. package/dist/lib/xero-invoice.js.map +1 -1
  51. package/dist/lib/xero-repeated-draft-invoice.d.ts +43 -0
  52. package/dist/lib/xero-repeated-draft-invoice.js +32 -0
  53. package/dist/lib/xero-repeated-draft-invoice.js.map +1 -0
  54. package/dist/lib/xero-token.js +2 -2
  55. package/dist/lib/xero-token.js.map +1 -1
  56. package/dist/lib/xero-wire.d.ts +96 -62
  57. package/dist/lib/xero-wire.js +22 -1
  58. package/dist/lib/xero-wire.js.map +1 -1
  59. package/dist/runtime.d.ts +2 -1
  60. package/dist/runtime.js +2 -1
  61. package/dist/runtime.js.map +1 -1
  62. package/package.json +3 -4
@@ -1,92 +1,126 @@
1
1
  import { Schema } from "effect";
2
2
  export declare const XeroTokenResponse: Schema.Struct<{
3
- access_token: typeof Schema.String;
4
- token_type: typeof Schema.String;
5
- expires_in: typeof Schema.Number;
6
- scope: Schema.optional<typeof Schema.String>;
3
+ readonly access_token: Schema.String;
4
+ readonly token_type: Schema.String;
5
+ readonly expires_in: Schema.Number;
6
+ readonly scope: Schema.optional<Schema.String>;
7
7
  }>;
8
8
  export declare const XeroTokenErrorResponse: Schema.Struct<{
9
- error: typeof Schema.String;
10
- error_description: Schema.optional<typeof Schema.String>;
9
+ readonly error: Schema.String;
10
+ readonly error_description: Schema.optional<Schema.String>;
11
11
  }>;
12
- export declare const XeroConnectionsResponse: Schema.Array$<Schema.Struct<{
13
- tenantId: typeof Schema.String;
14
- tenantType: Schema.optional<typeof Schema.String>;
12
+ export declare const XeroConnectionsResponse: Schema.$Array<Schema.Struct<{
13
+ readonly tenantId: Schema.String;
14
+ readonly tenantType: Schema.optional<Schema.String>;
15
15
  }>>;
16
16
  export declare const XeroValidationError: Schema.Struct<{
17
- Message: Schema.optional<typeof Schema.String>;
17
+ readonly Message: Schema.optional<Schema.String>;
18
18
  }>;
19
19
  export declare const XeroErrorResponse: Schema.Struct<{
20
- Type: Schema.optional<typeof Schema.String>;
21
- Title: Schema.optional<typeof Schema.String>;
22
- Detail: Schema.optional<typeof Schema.String>;
23
- Message: Schema.optional<typeof Schema.String>;
24
- Elements: Schema.optional<Schema.Array$<Schema.Struct<{
25
- ValidationErrors: Schema.optional<Schema.Array$<Schema.Struct<{
26
- Message: Schema.optional<typeof Schema.String>;
20
+ readonly Type: Schema.optional<Schema.String>;
21
+ readonly Title: Schema.optional<Schema.String>;
22
+ readonly Detail: Schema.optional<Schema.String>;
23
+ readonly Message: Schema.optional<Schema.String>;
24
+ readonly Elements: Schema.optional<Schema.$Array<Schema.Struct<{
25
+ readonly ValidationErrors: Schema.optional<Schema.$Array<Schema.Struct<{
26
+ readonly Message: Schema.optional<Schema.String>;
27
27
  }>>>;
28
28
  }>>>;
29
29
  }>;
30
30
  export declare const XeroContact: Schema.Struct<{
31
- ContactID: Schema.brand<Schema.filter<typeof Schema.String>, "XeroContactId">;
32
- Name: Schema.optional<typeof Schema.String>;
33
- EmailAddress: Schema.optional<typeof Schema.String>;
31
+ readonly ContactID: Schema.brand<Schema.String, "XeroContactId">;
32
+ readonly Name: Schema.optional<Schema.String>;
33
+ readonly EmailAddress: Schema.optional<Schema.String>;
34
34
  }>;
35
35
  export declare const XeroContactsResponse: Schema.Struct<{
36
- Contacts: Schema.Array$<Schema.Struct<{
37
- ContactID: Schema.brand<Schema.filter<typeof Schema.String>, "XeroContactId">;
38
- Name: Schema.optional<typeof Schema.String>;
39
- EmailAddress: Schema.optional<typeof Schema.String>;
36
+ readonly Contacts: Schema.$Array<Schema.Struct<{
37
+ readonly ContactID: Schema.brand<Schema.String, "XeroContactId">;
38
+ readonly Name: Schema.optional<Schema.String>;
39
+ readonly EmailAddress: Schema.optional<Schema.String>;
40
+ }>>;
41
+ }>;
42
+ export declare const XeroAddress: Schema.Struct<{
43
+ readonly AddressType: Schema.Literals<readonly ["POBOX", "STREET", "DELIVERY"]>;
44
+ readonly AttentionTo: Schema.optional<Schema.NullOr<Schema.String>>;
45
+ readonly AddressLine1: Schema.optional<Schema.NullOr<Schema.String>>;
46
+ readonly AddressLine2: Schema.optional<Schema.NullOr<Schema.String>>;
47
+ readonly AddressLine3: Schema.optional<Schema.NullOr<Schema.String>>;
48
+ readonly AddressLine4: Schema.optional<Schema.NullOr<Schema.String>>;
49
+ readonly City: Schema.optional<Schema.NullOr<Schema.String>>;
50
+ readonly Region: Schema.optional<Schema.NullOr<Schema.String>>;
51
+ readonly PostalCode: Schema.optional<Schema.NullOr<Schema.String>>;
52
+ readonly Country: Schema.optional<Schema.NullOr<Schema.String>>;
53
+ }>;
54
+ export declare const XeroContactDetailsResponse: Schema.Struct<{
55
+ readonly Contacts: Schema.$Array<Schema.Struct<{
56
+ readonly ContactID: Schema.brand<Schema.String, "XeroContactId">;
57
+ readonly Name: Schema.optional<Schema.String>;
58
+ readonly EmailAddress: Schema.optional<Schema.String>;
59
+ readonly Addresses: Schema.$Array<Schema.Struct<{
60
+ readonly AddressType: Schema.Literals<readonly ["POBOX", "STREET", "DELIVERY"]>;
61
+ readonly AttentionTo: Schema.optional<Schema.NullOr<Schema.String>>;
62
+ readonly AddressLine1: Schema.optional<Schema.NullOr<Schema.String>>;
63
+ readonly AddressLine2: Schema.optional<Schema.NullOr<Schema.String>>;
64
+ readonly AddressLine3: Schema.optional<Schema.NullOr<Schema.String>>;
65
+ readonly AddressLine4: Schema.optional<Schema.NullOr<Schema.String>>;
66
+ readonly City: Schema.optional<Schema.NullOr<Schema.String>>;
67
+ readonly Region: Schema.optional<Schema.NullOr<Schema.String>>;
68
+ readonly PostalCode: Schema.optional<Schema.NullOr<Schema.String>>;
69
+ readonly Country: Schema.optional<Schema.NullOr<Schema.String>>;
70
+ }>>;
40
71
  }>>;
41
72
  }>;
42
73
  export declare const XeroInvoiceContactWire: Schema.Struct<{
43
- ContactID: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "XeroContactId">>;
74
+ readonly ContactID: Schema.optional<Schema.brand<Schema.String, "XeroContactId">>;
44
75
  }>;
45
76
  export declare const XeroInvoiceLineWire: Schema.Struct<{
46
- ItemCode: Schema.optional<typeof Schema.String>;
47
- Quantity: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
48
- UnitAmount: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
49
- LineAmount: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
77
+ readonly ItemCode: Schema.optional<Schema.String>;
78
+ readonly Description: Schema.optional<Schema.String>;
79
+ readonly Quantity: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
80
+ readonly UnitAmount: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
81
+ readonly LineAmount: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
50
82
  }>;
51
83
  export declare const XeroInvoiceWire: Schema.Struct<{
52
- InvoiceID: typeof Schema.String;
53
- InvoiceNumber: typeof Schema.String;
54
- Status: typeof Schema.String;
55
- Type: Schema.optional<typeof Schema.String>;
56
- Reference: Schema.optional<typeof Schema.String>;
57
- CurrencyCode: Schema.optional<typeof Schema.String>;
58
- Date: Schema.optional<typeof Schema.String>;
59
- DueDate: Schema.optional<typeof Schema.String>;
60
- Contact: Schema.optional<Schema.Struct<{
61
- ContactID: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "XeroContactId">>;
84
+ readonly InvoiceID: Schema.String;
85
+ readonly InvoiceNumber: Schema.String;
86
+ readonly Status: Schema.String;
87
+ readonly Type: Schema.optional<Schema.String>;
88
+ readonly Reference: Schema.optional<Schema.String>;
89
+ readonly CurrencyCode: Schema.optional<Schema.String>;
90
+ readonly Date: Schema.optional<Schema.String>;
91
+ readonly DueDate: Schema.optional<Schema.String>;
92
+ readonly Contact: Schema.optional<Schema.Struct<{
93
+ readonly ContactID: Schema.optional<Schema.brand<Schema.String, "XeroContactId">>;
62
94
  }>>;
63
- LineItems: Schema.optional<Schema.Array$<Schema.Struct<{
64
- ItemCode: Schema.optional<typeof Schema.String>;
65
- Quantity: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
66
- UnitAmount: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
67
- LineAmount: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
95
+ readonly LineItems: Schema.optional<Schema.$Array<Schema.Struct<{
96
+ readonly ItemCode: Schema.optional<Schema.String>;
97
+ readonly Description: Schema.optional<Schema.String>;
98
+ readonly Quantity: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
99
+ readonly UnitAmount: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
100
+ readonly LineAmount: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
68
101
  }>>>;
69
- Total: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
102
+ readonly Total: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
70
103
  }>;
71
104
  export declare const XeroInvoicesResponse: Schema.Struct<{
72
- Invoices: Schema.Array$<Schema.Struct<{
73
- InvoiceID: typeof Schema.String;
74
- InvoiceNumber: typeof Schema.String;
75
- Status: typeof Schema.String;
76
- Type: Schema.optional<typeof Schema.String>;
77
- Reference: Schema.optional<typeof Schema.String>;
78
- CurrencyCode: Schema.optional<typeof Schema.String>;
79
- Date: Schema.optional<typeof Schema.String>;
80
- DueDate: Schema.optional<typeof Schema.String>;
81
- Contact: Schema.optional<Schema.Struct<{
82
- ContactID: Schema.optional<Schema.brand<Schema.filter<typeof Schema.String>, "XeroContactId">>;
105
+ readonly Invoices: Schema.$Array<Schema.Struct<{
106
+ readonly InvoiceID: Schema.String;
107
+ readonly InvoiceNumber: Schema.String;
108
+ readonly Status: Schema.String;
109
+ readonly Type: Schema.optional<Schema.String>;
110
+ readonly Reference: Schema.optional<Schema.String>;
111
+ readonly CurrencyCode: Schema.optional<Schema.String>;
112
+ readonly Date: Schema.optional<Schema.String>;
113
+ readonly DueDate: Schema.optional<Schema.String>;
114
+ readonly Contact: Schema.optional<Schema.Struct<{
115
+ readonly ContactID: Schema.optional<Schema.brand<Schema.String, "XeroContactId">>;
83
116
  }>>;
84
- LineItems: Schema.optional<Schema.Array$<Schema.Struct<{
85
- ItemCode: Schema.optional<typeof Schema.String>;
86
- Quantity: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
87
- UnitAmount: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
88
- LineAmount: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
117
+ readonly LineItems: Schema.optional<Schema.$Array<Schema.Struct<{
118
+ readonly ItemCode: Schema.optional<Schema.String>;
119
+ readonly Description: Schema.optional<Schema.String>;
120
+ readonly Quantity: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
121
+ readonly UnitAmount: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
122
+ readonly LineAmount: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
89
123
  }>>>;
90
- Total: Schema.optional<Schema.Union<[typeof Schema.Number, typeof Schema.String]>>;
124
+ readonly Total: Schema.optional<Schema.Union<readonly [Schema.Number, Schema.String]>>;
91
125
  }>>;
92
126
  }>;
@@ -36,12 +36,33 @@ export const XeroContact = Schema.Struct({
36
36
  export const XeroContactsResponse = Schema.Struct({
37
37
  Contacts: Schema.Array(XeroContact),
38
38
  });
39
- const XeroWireAmount = Schema.Union(Schema.Number, Schema.String);
39
+ export const XeroAddress = Schema.Struct({
40
+ AddressType: Schema.Literals(["POBOX", "STREET", "DELIVERY"]),
41
+ AttentionTo: Schema.optional(Schema.NullOr(Schema.String)),
42
+ AddressLine1: Schema.optional(Schema.NullOr(Schema.String)),
43
+ AddressLine2: Schema.optional(Schema.NullOr(Schema.String)),
44
+ AddressLine3: Schema.optional(Schema.NullOr(Schema.String)),
45
+ AddressLine4: Schema.optional(Schema.NullOr(Schema.String)),
46
+ City: Schema.optional(Schema.NullOr(Schema.String)),
47
+ Region: Schema.optional(Schema.NullOr(Schema.String)),
48
+ PostalCode: Schema.optional(Schema.NullOr(Schema.String)),
49
+ Country: Schema.optional(Schema.NullOr(Schema.String)),
50
+ });
51
+ // A detail read must actually include Addresses; a projected contact cannot
52
+ // establish that billing is empty. An empty array means no address slots.
53
+ export const XeroContactDetailsResponse = Schema.Struct({
54
+ Contacts: Schema.Array(Schema.Struct({
55
+ ...XeroContact.fields,
56
+ Addresses: Schema.Array(XeroAddress),
57
+ })),
58
+ });
59
+ const XeroWireAmount = Schema.Union([Schema.Number, Schema.String]);
40
60
  export const XeroInvoiceContactWire = Schema.Struct({
41
61
  ContactID: Schema.optional(XeroContactId),
42
62
  });
43
63
  export const XeroInvoiceLineWire = Schema.Struct({
44
64
  ItemCode: Schema.optional(Schema.String),
65
+ Description: Schema.optional(Schema.String),
45
66
  Quantity: Schema.optional(XeroWireAmount),
46
67
  UnitAmount: Schema.optional(XeroWireAmount),
47
68
  LineAmount: Schema.optional(XeroWireAmount),
@@ -1 +1 @@
1
- {"version":3,"file":"xero-wire.js","sourceRoot":"","sources":["../../src/lib/xero-wire.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAA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,MAAM,CAAC,MAAM;IAC5B,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAChD,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAC7D,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC;CACvC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC;CACxC,CAAC,CAAA"}
package/dist/runtime.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export { XeroConfiguration, makeXeroConfiguration, } from "./lib/xero-configuration.js";
1
2
  export { XeroInvoice, XeroInvoiceError } from "./lib/xero-invoice.js";
2
- export { XERO_DEFAULT_SCOPES, XeroDraftInvoiceLive, XeroInvoiceConfig, XeroInvoiceConfigFromEnv, XeroInvoiceLive, XeroInvoiceLookupLive, } from "./lib/xero-invoice-live.js";
3
+ export { XERO_DEFAULT_SCOPES, XeroDraftInvoiceLive, XeroInvoiceCancellationLive, XeroInvoiceConfig, XeroInvoiceConfigFromEnv, XeroInvoiceLive, XeroInvoiceLookupLive, XeroInvoicePreparationLive, } from "./lib/xero-invoice-live.js";
package/dist/runtime.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { XeroConfiguration, makeXeroConfiguration, } from "./lib/xero-configuration.js";
1
2
  export { XeroInvoice, XeroInvoiceError } from "./lib/xero-invoice.js";
2
- export { XERO_DEFAULT_SCOPES, XeroDraftInvoiceLive, XeroInvoiceConfig, XeroInvoiceConfigFromEnv, XeroInvoiceLive, XeroInvoiceLookupLive, } from "./lib/xero-invoice-live.js";
3
+ export { XERO_DEFAULT_SCOPES, XeroDraftInvoiceLive, XeroInvoiceCancellationLive, XeroInvoiceConfig, XeroInvoiceConfigFromEnv, XeroInvoiceLive, XeroInvoiceLookupLive, XeroInvoicePreparationLive, } from "./lib/xero-invoice-live.js";
3
4
  //# sourceMappingURL=runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAClE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,GACtB,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"runtime.js","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAClE,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EACxB,eAAe,EACf,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,yBAAyB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processfocus/plugin-xero",
3
- "version": "0.1.0-next.1",
3
+ "version": "0.1.0-next.3",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
@@ -41,14 +41,13 @@
41
41
  "!**/*.tsbuildinfo"
42
42
  ],
43
43
  "dependencies": {
44
- "@effect/platform": "^0.97.2",
45
- "effect": "^3.22.2"
44
+ "effect": "4.1.4"
46
45
  },
47
46
  "publishConfig": {
48
47
  "access": "public",
49
48
  "tag": "next"
50
49
  },
51
50
  "peerDependencies": {
52
- "processfocus": "0.1.0-next.1"
51
+ "processfocus": "0.1.0-next.3"
53
52
  }
54
53
  }