@virusis/api-client 0.1.21 → 0.1.22

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.
@@ -27,6 +27,7 @@ export declare function getServices(): {
27
27
  diagnosticsService: import("./index.js").DiagnosticsClient;
28
28
  feedbacksService: import("./index.js").FeedbacksClient;
29
29
  interactionTrackersService: import("./index.js").InteractionTrackersClient;
30
+ lemonSqueezyWebhookService: import("./index.js").LemonSqueezyWebhookClient;
30
31
  menuGroupsService: import("./index.js").MenuGroupsClient;
31
32
  menuOperationClaimsService: import("./index.js").MenuOperationClaimsClient;
32
33
  menusService: import("./index.js").MenusClient;
@@ -112,6 +113,7 @@ export declare function getServicesRx(): {
112
113
  diagnosticsService: import("./index.js").DiagnosticsClient;
113
114
  feedbacksService: import("./index.js").FeedbacksClient;
114
115
  interactionTrackersService: import("./index.js").InteractionTrackersClient;
116
+ lemonSqueezyWebhookService: import("./index.js").LemonSqueezyWebhookClient;
115
117
  menuGroupsService: import("./index.js").MenuGroupsClient;
116
118
  menuOperationClaimsService: import("./index.js").MenuOperationClaimsClient;
117
119
  menusService: import("./index.js").MenusClient;
@@ -198,6 +200,7 @@ export declare function getServicesByMode(mode?: ClientMode): {
198
200
  diagnosticsService: import("./index.js").DiagnosticsClient;
199
201
  feedbacksService: import("./index.js").FeedbacksClient;
200
202
  interactionTrackersService: import("./index.js").InteractionTrackersClient;
203
+ lemonSqueezyWebhookService: import("./index.js").LemonSqueezyWebhookClient;
201
204
  menuGroupsService: import("./index.js").MenuGroupsClient;
202
205
  menuOperationClaimsService: import("./index.js").MenuOperationClaimsClient;
203
206
  menusService: import("./index.js").MenusClient;
@@ -14,6 +14,7 @@ export * from "./devices-service.js";
14
14
  export * from "./diagnostics-service.js";
15
15
  export * from "./feedbacks-service.js";
16
16
  export * from "./interaction-trackers-service.js";
17
+ export * from "./lemon-squeezy-webhook-service.js";
17
18
  export * from "./menu-groups-service.js";
18
19
  export * from "./menu-operation-claims-service.js";
19
20
  export * from "./menus-service.js";
@@ -14,6 +14,7 @@ export * from "./devices-service.js";
14
14
  export * from "./diagnostics-service.js";
15
15
  export * from "./feedbacks-service.js";
16
16
  export * from "./interaction-trackers-service.js";
17
+ export * from "./lemon-squeezy-webhook-service.js";
17
18
  export * from "./menu-groups-service.js";
18
19
  export * from "./menu-operation-claims-service.js";
19
20
  export * from "./menus-service.js";
@@ -0,0 +1,2 @@
1
+ export { LemonSqueezyWebhookClient, LemonSqueezyWebhookClient as LemonSqueezyWebhookService, ILemonSqueezyWebhookClient } from "../index.js";
2
+ export { LemonSqueezyWebhookClient as lemonSqueezyWebhookService, ILemonSqueezyWebhookClient as iLemonSqueezyWebhookClient } from "../index.js";
@@ -0,0 +1,2 @@
1
+ export { LemonSqueezyWebhookClient, LemonSqueezyWebhookClient as LemonSqueezyWebhookService } from "../index.js";
2
+ export { LemonSqueezyWebhookClient as lemonSqueezyWebhookService } from "../index.js";
@@ -14,6 +14,7 @@ export * from "./devices-service-rx.js";
14
14
  export * from "./diagnostics-service-rx.js";
15
15
  export * from "./feedbacks-service-rx.js";
16
16
  export * from "./interaction-trackers-service-rx.js";
17
+ export * from "./lemon-squeezy-webhook-service-rx.js";
17
18
  export * from "./menu-groups-service-rx.js";
18
19
  export * from "./menu-operation-claims-service-rx.js";
19
20
  export * from "./menus-service-rx.js";
@@ -14,6 +14,7 @@ export * from "./devices-service-rx.js";
14
14
  export * from "./diagnostics-service-rx.js";
15
15
  export * from "./feedbacks-service-rx.js";
16
16
  export * from "./interaction-trackers-service-rx.js";
17
+ export * from "./lemon-squeezy-webhook-service-rx.js";
17
18
  export * from "./menu-groups-service-rx.js";
18
19
  export * from "./menu-operation-claims-service-rx.js";
19
20
  export * from "./menus-service-rx.js";
@@ -0,0 +1,16 @@
1
+ import { LemonSqueezyWebhookClient } from "../index.js";
2
+ import type { ApiClientConfig } from "../../base.js";
3
+ export declare function createLemonSqueezyWebhookServiceRx(config: ApiClientConfig, baseUrl?: string, http?: {
4
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
5
+ }): import("../../rx.js").Rxified<LemonSqueezyWebhookClient>;
6
+ export type LemonSqueezyWebhookServiceRx = ReturnType<typeof createLemonSqueezyWebhookServiceRx>;
7
+ export declare const lemonSqueezyWebhookServiceRx: (config: ApiClientConfig, baseUrl?: string, http?: {
8
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
9
+ }) => import("../../rx.js").Rxified<LemonSqueezyWebhookClient>;
10
+ export declare class LemonSqueezyWebhookServiceRxClass {
11
+ constructor(config: ApiClientConfig, baseUrl?: string, http?: {
12
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
13
+ });
14
+ }
15
+ export interface LemonSqueezyWebhookServiceRxClass extends LemonSqueezyWebhookServiceRx {
16
+ }
@@ -0,0 +1,12 @@
1
+ import { LemonSqueezyWebhookClient } from "../index.js";
2
+ import { rxifyClient } from "../../rx.js";
3
+ export function createLemonSqueezyWebhookServiceRx(config, baseUrl, http) {
4
+ return rxifyClient(new LemonSqueezyWebhookClient(config, baseUrl, http));
5
+ }
6
+ export const lemonSqueezyWebhookServiceRx = (config, baseUrl, http) => createLemonSqueezyWebhookServiceRx(config, baseUrl, http);
7
+ // Angular DI icin: class token kullandiginda Observable donen wrapper
8
+ export class LemonSqueezyWebhookServiceRxClass {
9
+ constructor(config, baseUrl, http) {
10
+ return createLemonSqueezyWebhookServiceRx(config, baseUrl, http);
11
+ }
12
+ }
@@ -410,6 +410,11 @@ export declare class AppStateLogsClient extends BaseApiClient implements IAppSta
410
410
  protected processGetFiltersBase(response: Response): Promise<IDataResult_1OfOfResultFilter_1OfOfList_1OfOfAppStateLogForTableDtoAndEntitiesAnd_0AndCulture_neutralAndPublicKeyToken_nullAndCoreLibAnd_0AndCulture_neutralAndPublicKeyToken_7cec85d7bea7798eAndCoreAnd_0AndCulture_neutralAndPublicKeyToken_null>;
411
411
  }
412
412
  export interface IAuthClient extends IEntity {
413
+ /**
414
+ * @param body (optional)
415
+ * @return OK
416
+ */
417
+ resendVerify(body?: ResendVerifyRequest | undefined, signal?: AbortSignal): Promise<any>;
413
418
  /**
414
419
  * @param body (optional)
415
420
  * @return OK
@@ -464,6 +469,12 @@ export declare class AuthClient extends BaseApiClient implements IAuthClient {
464
469
  constructor(configuration: ApiClientConfig, baseUrl?: string, http?: {
465
470
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
466
471
  });
472
+ /**
473
+ * @param body (optional)
474
+ * @return OK
475
+ */
476
+ resendVerify(body?: ResendVerifyRequest | undefined, signal?: AbortSignal): Promise<any>;
477
+ protected processResendVerify(response: Response): Promise<any>;
467
478
  /**
468
479
  * @param body (optional)
469
480
  * @return OK
@@ -1059,6 +1070,25 @@ export declare class InteractionTrackersClient extends BaseApiClient implements
1059
1070
  getFiltersBase(body?: DataTableQuery_1OfOfInteractionTrackerForTableFilterAndEntitiesAnd_0AndCulture_neutralAndPublicKeyToken_null | undefined, signal?: AbortSignal): Promise<IDataResult_1OfOfResultFilter_1OfOfList_1OfOfInteractionTrackerForTableDtoAndEntitiesAnd_0AndCulture_neutralAndPublicKeyToken_nullAndCoreLibAnd_0AndCulture_neutralAndPublicKeyToken_7cec85d7bea7798eAndCoreAnd_0AndCulture_neutralAndPublicKeyToken_null>;
1060
1071
  protected processGetFiltersBase(response: Response): Promise<IDataResult_1OfOfResultFilter_1OfOfList_1OfOfInteractionTrackerForTableDtoAndEntitiesAnd_0AndCulture_neutralAndPublicKeyToken_nullAndCoreLibAnd_0AndCulture_neutralAndPublicKeyToken_7cec85d7bea7798eAndCoreAnd_0AndCulture_neutralAndPublicKeyToken_null>;
1061
1072
  }
1073
+ export interface ILemonSqueezyWebhookClient extends IEntity {
1074
+ /**
1075
+ * @return OK
1076
+ */
1077
+ webhook(signal?: AbortSignal): Promise<any>;
1078
+ }
1079
+ export declare class LemonSqueezyWebhookClient extends BaseApiClient implements ILemonSqueezyWebhookClient {
1080
+ private http;
1081
+ private baseUrl;
1082
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
1083
+ constructor(configuration: ApiClientConfig, baseUrl?: string, http?: {
1084
+ fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
1085
+ });
1086
+ /**
1087
+ * @return OK
1088
+ */
1089
+ webhook(signal?: AbortSignal): Promise<any>;
1090
+ protected processWebhook(response: Response): Promise<any>;
1091
+ }
1062
1092
  export interface IMenuGroupsClient extends IEntity {
1063
1093
  /**
1064
1094
  * @param titleKey (optional)
@@ -13197,6 +13227,9 @@ export interface RevokeAllResult extends IEntity {
13197
13227
  export interface RotateRequest2 extends IEntity {
13198
13228
  graceDays?: number | undefined;
13199
13229
  }
13230
+ export interface ResendVerifyRequest extends IEntity {
13231
+ email?: string | undefined;
13232
+ }
13200
13233
  export interface CreateShareLinkRequest extends IEntity {
13201
13234
  url?: string | undefined;
13202
13235
  ttlMinutes?: number;
@@ -1468,6 +1468,46 @@ export class AuthClient extends BaseApiClient {
1468
1468
  this.http = http ? http : { fetch: buildAuthFetch(configuration) };
1469
1469
  this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
1470
1470
  }
1471
+ /**
1472
+ * @param body (optional)
1473
+ * @return OK
1474
+ */
1475
+ resendVerify(body, signal) {
1476
+ let url_ = this.baseUrl + "/api/Auth/ResendVerify";
1477
+ url_ = url_.replace(/[?&]$/, "");
1478
+ const content_ = JSON.stringify(body);
1479
+ let options_ = {
1480
+ body: content_,
1481
+ method: "POST",
1482
+ signal,
1483
+ headers: {
1484
+ "Content-Type": "application/json",
1485
+ }
1486
+ };
1487
+ return this.http.fetch(url_, options_).then((_response) => {
1488
+ return this.processResendVerify(_response);
1489
+ });
1490
+ }
1491
+ processResendVerify(response) {
1492
+ const status = response.status;
1493
+ let _headers = {};
1494
+ if (response.headers && response.headers.forEach) {
1495
+ response.headers.forEach((v, k) => _headers[k] = v);
1496
+ }
1497
+ ;
1498
+ if (status === 200) {
1499
+ return response.text().then((_responseText) => {
1500
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
1501
+ return result200;
1502
+ });
1503
+ }
1504
+ else if (status !== 200 && status !== 204) {
1505
+ return response.text().then((_responseText) => {
1506
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
1507
+ });
1508
+ }
1509
+ return Promise.resolve(null);
1510
+ }
1471
1511
  /**
1472
1512
  * @param body (optional)
1473
1513
  * @return OK
@@ -3745,6 +3785,61 @@ export class InteractionTrackersClient extends BaseApiClient {
3745
3785
  return Promise.resolve(null);
3746
3786
  }
3747
3787
  }
3788
+ export class LemonSqueezyWebhookClient extends BaseApiClient {
3789
+ constructor(configuration, baseUrl, http) {
3790
+ super(configuration);
3791
+ this.jsonParseReviver = undefined;
3792
+ this.http = http ? http : { fetch: buildAuthFetch(configuration) };
3793
+ this.baseUrl = (baseUrl ?? configuration.baseUrl ?? "").replace(/\/+$/, "").replace(/\/api$/, "");
3794
+ }
3795
+ /**
3796
+ * @return OK
3797
+ */
3798
+ webhook(signal) {
3799
+ let url_ = this.baseUrl + "/api/internal/lemonsqueezy";
3800
+ url_ = url_.replace(/[?&]$/, "");
3801
+ let options_ = {
3802
+ method: "POST",
3803
+ signal,
3804
+ headers: {}
3805
+ };
3806
+ return this.http.fetch(url_, options_).then((_response) => {
3807
+ return this.processWebhook(_response);
3808
+ });
3809
+ }
3810
+ processWebhook(response) {
3811
+ const status = response.status;
3812
+ let _headers = {};
3813
+ if (response.headers && response.headers.forEach) {
3814
+ response.headers.forEach((v, k) => _headers[k] = v);
3815
+ }
3816
+ ;
3817
+ if (status === 200) {
3818
+ return response.text().then((_responseText) => {
3819
+ const result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3820
+ return result200;
3821
+ });
3822
+ }
3823
+ else if (status === 401) {
3824
+ return response.text().then((_responseText) => {
3825
+ let result401 = null;
3826
+ result401 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
3827
+ return throwException("Unauthorized", status, _responseText, _headers, result401);
3828
+ });
3829
+ }
3830
+ else if (status === 503) {
3831
+ return response.text().then((_responseText) => {
3832
+ return throwException("Service Unavailable", status, _responseText, _headers);
3833
+ });
3834
+ }
3835
+ else if (status !== 200 && status !== 204) {
3836
+ return response.text().then((_responseText) => {
3837
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3838
+ });
3839
+ }
3840
+ return Promise.resolve(null);
3841
+ }
3842
+ }
3748
3843
  export class MenuGroupsClient extends BaseApiClient {
3749
3844
  constructor(configuration, baseUrl, http) {
3750
3845
  super(configuration);
@@ -685,6 +685,7 @@ export * from "./create-request.js";
685
685
  export * from "./key-response.js";
686
686
  export * from "./revoke-all-result.js";
687
687
  export * from "./rotate-request2.js";
688
+ export * from "./resend-verify-request.js";
688
689
  export * from "./create-share-link-request.js";
689
690
  export * from "./introspect-request.js";
690
691
  export * from "./introspect-response.js";
@@ -685,6 +685,7 @@ export * from "./create-request.js";
685
685
  export * from "./key-response.js";
686
686
  export * from "./revoke-all-result.js";
687
687
  export * from "./rotate-request2.js";
688
+ export * from "./resend-verify-request.js";
688
689
  export * from "./create-share-link-request.js";
689
690
  export * from "./introspect-request.js";
690
691
  export * from "./introspect-response.js";
@@ -0,0 +1,4 @@
1
+ import type { ResendVerifyRequest as __ResendVerifyRequest } from "../index.js";
2
+ export declare const ResendVerifyRequest: __ResendVerifyRequest;
3
+ export type ResendVerifyRequest = __ResendVerifyRequest;
4
+ export type resendVerifyRequest = __ResendVerifyRequest;
@@ -0,0 +1 @@
1
+ export const ResendVerifyRequest = {};
package/dist/rx.d.ts CHANGED
@@ -63,6 +63,9 @@ export declare function createAllClients(cfg: ApiClientConfig, baseUrl?: string,
63
63
  InteractionTrackersClient: ClientCtors.InteractionTrackersClient;
64
64
  InteractionTrackersService: ClientCtors.InteractionTrackersClient;
65
65
  interactionTrackersService: ClientCtors.InteractionTrackersClient;
66
+ LemonSqueezyWebhookClient: ClientCtors.LemonSqueezyWebhookClient;
67
+ LemonSqueezyWebhookService: ClientCtors.LemonSqueezyWebhookClient;
68
+ lemonSqueezyWebhookService: ClientCtors.LemonSqueezyWebhookClient;
66
69
  MenuGroupsClient: ClientCtors.MenuGroupsClient;
67
70
  MenuGroupsService: ClientCtors.MenuGroupsClient;
68
71
  menuGroupsService: ClientCtors.MenuGroupsClient;
@@ -314,6 +317,9 @@ export declare function createAllRxClients(cfg: ApiClientConfig, baseUrl?: strin
314
317
  InteractionTrackersClient: Rxified<ClientCtors.InteractionTrackersClient>;
315
318
  InteractionTrackersService: Rxified<ClientCtors.InteractionTrackersClient>;
316
319
  interactionTrackersService: Rxified<ClientCtors.InteractionTrackersClient>;
320
+ LemonSqueezyWebhookClient: Rxified<ClientCtors.LemonSqueezyWebhookClient>;
321
+ LemonSqueezyWebhookService: Rxified<ClientCtors.LemonSqueezyWebhookClient>;
322
+ lemonSqueezyWebhookService: Rxified<ClientCtors.LemonSqueezyWebhookClient>;
317
323
  MenuGroupsClient: Rxified<ClientCtors.MenuGroupsClient>;
318
324
  MenuGroupsService: Rxified<ClientCtors.MenuGroupsClient>;
319
325
  menuGroupsService: Rxified<ClientCtors.MenuGroupsClient>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virusis/api-client",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",