samva 0.45.0 → 0.45.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.
@@ -18080,6 +18080,10 @@ export type AnalyticsGetStatsResponses = {
18080
18080
  email: number;
18081
18081
  whatsapp: number;
18082
18082
  sms: number;
18083
+ /**
18084
+ * Emails in this bucket that bounced or failed. A subset of `email`.
18085
+ */
18086
+ emailFailed: number;
18083
18087
  }>;
18084
18088
  };
18085
18089
  };
@@ -18249,6 +18253,10 @@ export type AnalyticsGetHourlyDistributionResponses = {
18249
18253
  200: Array<{
18250
18254
  hour: string;
18251
18255
  count: number;
18256
+ /**
18257
+ * `count` split by organization-local weekday: seven entries, Monday first, summing to `count`.
18258
+ */
18259
+ weekdays: Array<number>;
18252
18260
  }>;
18253
18261
  };
18254
18262
  export type AnalyticsGetHourlyDistributionResponse = AnalyticsGetHourlyDistributionResponses[keyof AnalyticsGetHourlyDistributionResponses];
@@ -160,10 +160,12 @@ export declare const AnalyticsGetHourlyDistributionQuery: Schema.Struct<{
160
160
  export type AnalyticsGetHourlyDistribution200 = ReadonlyArray<{
161
161
  readonly hour: string;
162
162
  readonly count: number;
163
+ readonly weekdays: ReadonlyArray<number>;
163
164
  }>;
164
165
  export declare const AnalyticsGetHourlyDistribution200: Schema.$Array<Schema.Struct<{
165
166
  readonly hour: Schema.String;
166
167
  readonly count: Schema.Finite;
168
+ readonly weekdays: Schema.$Array<Schema.Finite>;
167
169
  }>>;
168
170
  export type AnalyticsGetHourlyDistribution400 = AnalyticsQueryError | MalformedRequestError;
169
171
  export declare const AnalyticsGetHourlyDistribution400: Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]>;
@@ -197,6 +199,7 @@ export type AnalyticsGetStats200 = {
197
199
  readonly email: number;
198
200
  readonly whatsapp: number;
199
201
  readonly sms: number;
202
+ readonly emailFailed: number;
200
203
  }>;
201
204
  };
202
205
  export declare const AnalyticsGetStats200: Schema.Struct<{
@@ -205,6 +208,7 @@ export declare const AnalyticsGetStats200: Schema.Struct<{
205
208
  readonly email: Schema.Finite;
206
209
  readonly whatsapp: Schema.Finite;
207
210
  readonly sms: Schema.Finite;
211
+ readonly emailFailed: Schema.Finite;
208
212
  }>>;
209
213
  }>;
210
214
  export type AnalyticsGetStats400 = AnalyticsQueryError | MalformedRequestError;
@@ -495,6 +499,7 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
495
499
  }>>, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
496
500
  readonly hour: Schema.String;
497
501
  readonly count: Schema.Finite;
502
+ readonly weekdays: Schema.$Array<Schema.Finite>;
498
503
  }>>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
499
504
  readonly _tag: "ForbiddenError";
500
505
  readonly message: string;
@@ -567,6 +572,7 @@ declare const AnalyticsGroup_base: HttpApiGroup.HttpApiGroup<"Analytics", HttpAp
567
572
  readonly email: Schema.Finite;
568
573
  readonly whatsapp: Schema.Finite;
569
574
  readonly sms: Schema.Finite;
575
+ readonly emailFailed: Schema.Finite;
570
576
  }>>;
571
577
  }>>, Schema.toCodecJson<Schema.Union<readonly [typeof AnalyticsQueryError, typeof MalformedRequestError]> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
572
578
  readonly _tag: "ForbiddenError";
@@ -91,7 +91,8 @@ const AnalyticsGetHourlyDistributionQuery = /* @__PURE__ */ (() => Schema.Struct
91
91
  }))();
92
92
  const AnalyticsGetHourlyDistribution200 = /* @__PURE__ */ (() => Schema.Array(Schema.Struct({
93
93
  hour: Schema.String,
94
- count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
94
+ count: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
95
+ weekdays: Schema.Array(Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))).annotate({ description: "`count` split by organization-local weekday: seven entries, Monday first, summing to `count`." })
95
96
  })))();
96
97
  const AnalyticsGetHourlyDistribution400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
97
98
  const AnalyticsGetHourlyDistribution401 = UnauthorizedError;
@@ -118,7 +119,8 @@ const AnalyticsGetStats200 = /* @__PURE__ */ (() => Schema.Struct({ volumeHistor
118
119
  date: Schema.String,
119
120
  email: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
120
121
  whatsapp: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
121
- sms: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
122
+ sms: Schema.Finite.check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" })),
123
+ emailFailed: Schema.Finite.annotate({ description: "Emails in this bucket that bounced or failed. A subset of `email`." }).check(Schema.isInt().annotate({ expected: "an integer" })).check(Schema.isGreaterThanOrEqualTo(0).annotate({ expected: "a value greater than or equal to 0" })).check(Schema.isLessThanOrEqualTo(9007199254740991).annotate({ expected: "a value less than or equal to 9007199254740991" }))
122
124
  })) }))();
123
125
  const AnalyticsGetStats400 = /* @__PURE__ */ (() => Schema.Union([AnalyticsQueryError, MalformedRequestError]))();
124
126
  const AnalyticsGetStats401 = UnauthorizedError;
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.45.0";
2
+ var version = "0.45.1";
3
3
  export { version };
4
4
 
5
5
  //# sourceMappingURL=package.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "samva",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "description": "TypeScript SDK for the Samva email and WhatsApp API",
5
5
  "keywords": [
6
6
  "api-client",
@@ -253,7 +253,7 @@
253
253
  "typecheck": "slot 'effect-tsgo tsrs --noEmit && effect-tsgo tsrs --noEmit -p codegen/tsconfig.json && effect-tsgo tsrs --noEmit -p tests/tsconfig.json && effect-tsgo tsrs --noEmit --project tests/parity/tsconfig.json \"$@\"'"
254
254
  },
255
255
  "dependencies": {
256
- "@samva/webhooks": "0.45.0"
256
+ "@samva/webhooks": "0.45.1"
257
257
  },
258
258
  "devDependencies": {
259
259
  "@effect/openapi-generator": "^4.1.2",