@deadair/sdk 0.67.1 → 0.68.0

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.
@@ -1,5 +1,5 @@
1
1
  import type { SdkFetch } from '../sdk-options.js';
2
- import type { SigninProvidersCheck, StationSettings, StationSettingsInput } from './types/settings.types.js';
2
+ import type { InvitationPreview, InvitationPreviewQuery, SigninProvidersCheck, StationSettings, StationSettingsInput } from './types/settings.types.js';
3
3
  export declare class SettingsClient {
4
4
  private fetch;
5
5
  constructor(fetch: SdkFetch);
@@ -18,5 +18,10 @@ export declare class SettingsClient {
18
18
  * @description Asks each identity provider in the sign-in settings for its discovery document, the way a sign-in would, and says which answered
19
19
  */
20
20
  checkSignInProviders(): Promise<SigninProvidersCheck>;
21
+ /**
22
+ * @name Preview invitation
23
+ * @description Renders the invitation email as it would be sent now, in the station's saved wording, with sample values in place of a real link, inviter and date
24
+ */
25
+ previewInvitation(query?: InvitationPreviewQuery): Promise<InvitationPreview>;
21
26
  }
22
27
  //# sourceMappingURL=settings.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.client.d.ts","sourceRoot":"","sources":["../../src/settings/settings.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE7G,qBAAa,cAAc;IACX,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,eAAe,CAAC;IAK7C;;;OAGG;IACG,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAS1E;;;OAGG;IACG,oBAAoB,IAAI,OAAO,CAAC,oBAAoB,CAAC;CAI9D"}
1
+ {"version":3,"file":"settings.client.d.ts","sourceRoot":"","sources":["../../src/settings/settings.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EACR,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,qBAAa,cAAc;IACX,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,WAAW,IAAI,OAAO,CAAC,eAAe,CAAC;IAK7C;;;OAGG;IACG,cAAc,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAS1E;;;OAGG;IACG,oBAAoB,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAK3D;;;OAGG;IACG,iBAAiB,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAOtF"}
@@ -28,6 +28,30 @@ export interface SigninProviderCheck {
28
28
  /** Why not, in a sentence. Absent when it answered */
29
29
  problem?: string;
30
30
  }
31
+ /**
32
+ * Which invitation to preview
33
+ * generated from [InvitationPreviewQuery](../../../../../apps/api/data/contracts/settings/settings.types.ck)
34
+ */
35
+ export interface InvitationPreviewQuery {
36
+ /** The role the invitation would be for. Its subject, its guide link and the station's own wording differ between the two */
37
+ role: 'listener' | 'admin';
38
+ }
39
+ /**
40
+ * An invitation as it would be emailed now, with a sample link, inviter and date in place of a real one
41
+ * generated from [InvitationPreview](../../../../../apps/api/data/contracts/settings/settings.types.ck)
42
+ */
43
+ export interface InvitationPreview {
44
+ /** The subject line */
45
+ subject: string;
46
+ /** The whole HTML part, as a document */
47
+ html: string;
48
+ /** The plain-text part */
49
+ text: string;
50
+ /** Whether the station's saved subject or message was used. False when neither is set, or when what is saved cannot be used and the station's own wording is shown instead */
51
+ ownWording: boolean;
52
+ /** Why the saved wording cannot be used, in a sentence. Absent when it can, or when nothing is saved */
53
+ problem?: string;
54
+ }
31
55
  /**
32
56
  * A station setting as the console needs to render it. `ConfigFieldDescriptor` is the plugins area's,
33
57
  * and shared deliberately: a plugin's settings form and the station's are the same problem, and the
@@ -1 +1 @@
1
- {"version":3,"file":"settings.types.d.ts","sourceRoot":"","sources":["../../../src/settings/types/settings.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAElF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAClB,SAAS,GACT,QAAQ,GACR,cAAc,GACd,MAAM,GACN,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,WAAW,GACX,SAAS,GACT,QAAQ,GACR,KAAK,GACL,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAElB;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,EAAE,EAAE,OAAO,CAAC;IACZ,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACnE,KAAK,EAAE,YAAY,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC,uCAAuC;IACvC,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,gJAAgJ;IAChJ,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxC,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,kGAAkG;IAClG,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,6wBAA6wB;IAC7wB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
1
+ {"version":3,"file":"settings.types.d.ts","sourceRoot":"","sources":["../../../src/settings/types/settings.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAElF;;;GAGG;AACH,MAAM,MAAM,YAAY,GAClB,SAAS,GACT,QAAQ,GACR,cAAc,GACd,MAAM,GACN,QAAQ,GACR,UAAU,GACV,QAAQ,GACR,WAAW,GACX,SAAS,GACT,QAAQ,GACR,KAAK,GACL,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,CAAC;AAElB;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAChC,qBAAqB;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,0EAA0E;IAC1E,EAAE,EAAE,OAAO,CAAC;IACZ,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,6HAA6H;IAC7H,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAC9B,uBAAuB;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,8KAA8K;IAC9K,UAAU,EAAE,OAAO,CAAC;IACpB,wGAAwG;IACxG,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAyB,SAAQ,qBAAqB;IACnE,KAAK,EAAE,YAAY,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACjC,uCAAuC;IACvC,SAAS,EAAE,mBAAmB,EAAE,CAAC;IACjC,gJAAgJ;IAChJ,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxC,mFAAmF;IACnF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,kGAAkG;IAClG,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,6wBAA6wB;IAC7wB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deadair/sdk",
3
- "version": "0.67.1",
3
+ "version": "0.68.0",
4
4
  "description": "A typed client for the deadair station's HTTP API, generated from the same contracts the station serves.",
5
5
  "keywords": [
6
6
  "deadair",