@otr-app/shared-backend-generated-client 2.5.79 → 2.5.81

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.
@@ -24,13 +24,6 @@ export declare class CaseReferralCodeControllerApi {
24
24
  * @param codeId codeId
25
25
  */
26
26
  applyReferralCodeUsingPOST(caseId: string, codeId: string, extraHttpRequestParams?: any): ng.IHttpPromise<models.MatchCaseResponse>;
27
- /**
28
- *
29
- * @summary removeReferralCodeFromCase
30
- * @param caseId caseId
31
- * @param codeId codeId
32
- */
33
- removeReferralCodeFromCaseUsingDELETE(caseId: string, codeId: string, extraHttpRequestParams?: any): ng.IHttpPromise<{}>;
34
27
  /**
35
28
  *
36
29
  * @summary removeReferralCodeFromCaseV2
@@ -51,37 +51,6 @@ export class CaseReferralCodeControllerApi {
51
51
  }
52
52
  return this.$http(httpRequestParams);
53
53
  }
54
- /**
55
- *
56
- * @summary removeReferralCodeFromCase
57
- * @param caseId caseId
58
- * @param codeId codeId
59
- */
60
- removeReferralCodeFromCaseUsingDELETE(caseId, codeId, extraHttpRequestParams) {
61
- const localVarPath = this.basePath + '/api/v1/cases/{caseId}/referralcode/{codeId}'
62
- .replace('{' + 'caseId' + '}', encodeURIComponent(String(caseId)))
63
- .replace('{' + 'codeId' + '}', encodeURIComponent(String(codeId)));
64
- let queryParameters = {};
65
- let headerParams = Object.assign({}, this.defaultHeaders);
66
- // verify required parameter 'caseId' is not null or undefined
67
- if (caseId === null || caseId === undefined) {
68
- throw new Error('Required parameter caseId was null or undefined when calling removeReferralCodeFromCaseUsingDELETE.');
69
- }
70
- // verify required parameter 'codeId' is not null or undefined
71
- if (codeId === null || codeId === undefined) {
72
- throw new Error('Required parameter codeId was null or undefined when calling removeReferralCodeFromCaseUsingDELETE.');
73
- }
74
- let httpRequestParams = {
75
- method: 'DELETE',
76
- url: localVarPath,
77
- params: queryParameters,
78
- headers: headerParams
79
- };
80
- if (extraHttpRequestParams) {
81
- httpRequestParams = Object.assign(httpRequestParams, extraHttpRequestParams);
82
- }
83
- return this.$http(httpRequestParams);
84
- }
85
54
  /**
86
55
  *
87
56
  * @summary removeReferralCodeFromCaseV2
@@ -11,6 +11,7 @@
11
11
  */
12
12
  export interface SaveBillingProductOptionRequest {
13
13
  "interval"?: SaveBillingProductOptionRequest.IntervalEnum;
14
+ "offerType"?: SaveBillingProductOptionRequest.OfferTypeEnum;
14
15
  }
15
16
  export declare namespace SaveBillingProductOptionRequest {
16
17
  enum IntervalEnum {
@@ -20,4 +21,8 @@ export declare namespace SaveBillingProductOptionRequest {
20
21
  WEEKLY,
21
22
  YEARLY
22
23
  }
24
+ enum OfferTypeEnum {
25
+ _1MMONTHLY,
26
+ _2MYEARLYUPFRONT
27
+ }
23
28
  }
@@ -19,4 +19,9 @@ export var SaveBillingProductOptionRequest;
19
19
  IntervalEnum[IntervalEnum["WEEKLY"] = 'WEEKLY'] = "WEEKLY";
20
20
  IntervalEnum[IntervalEnum["YEARLY"] = 'YEARLY'] = "YEARLY";
21
21
  })(IntervalEnum = SaveBillingProductOptionRequest.IntervalEnum || (SaveBillingProductOptionRequest.IntervalEnum = {}));
22
+ let OfferTypeEnum;
23
+ (function (OfferTypeEnum) {
24
+ OfferTypeEnum[OfferTypeEnum["_1MMONTHLY"] = 'TRIAL_1M_MONTHLY'] = "_1MMONTHLY";
25
+ OfferTypeEnum[OfferTypeEnum["_2MYEARLYUPFRONT"] = 'TRIAL_2M_YEARLY_UPFRONT'] = "_2MYEARLYUPFRONT";
26
+ })(OfferTypeEnum = SaveBillingProductOptionRequest.OfferTypeEnum || (SaveBillingProductOptionRequest.OfferTypeEnum = {}));
22
27
  })(SaveBillingProductOptionRequest || (SaveBillingProductOptionRequest = {}));
@@ -15,10 +15,6 @@ export interface ApplyReferralCodeUsingPOSTRequest {
15
15
  caseId: string;
16
16
  codeId: string;
17
17
  }
18
- export interface RemoveReferralCodeFromCaseUsingDELETERequest {
19
- caseId: string;
20
- codeId: string;
21
- }
22
18
  export interface RemoveReferralCodeFromCaseV2UsingDELETERequest {
23
19
  caseId: string;
24
20
  codeId: string;
@@ -37,14 +33,6 @@ export declare class CaseReferralCodeControllerApi extends runtime.BaseAPI {
37
33
  * applyReferralCode
38
34
  */
39
35
  applyReferralCodeUsingPOST(requestParameters: ApplyReferralCodeUsingPOSTRequest): Promise<MatchCaseResponse>;
40
- /**
41
- * removeReferralCodeFromCase
42
- */
43
- removeReferralCodeFromCaseUsingDELETERaw(requestParameters: RemoveReferralCodeFromCaseUsingDELETERequest): Promise<runtime.ApiResponse<void>>;
44
- /**
45
- * removeReferralCodeFromCase
46
- */
47
- removeReferralCodeFromCaseUsingDELETE(requestParameters: RemoveReferralCodeFromCaseUsingDELETERequest): Promise<void>;
48
36
  /**
49
37
  * removeReferralCodeFromCaseV2
50
38
  */
@@ -59,36 +59,6 @@ export class CaseReferralCodeControllerApi extends runtime.BaseAPI {
59
59
  return yield response.value();
60
60
  });
61
61
  }
62
- /**
63
- * removeReferralCodeFromCase
64
- */
65
- removeReferralCodeFromCaseUsingDELETERaw(requestParameters) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- if (requestParameters.caseId === null || requestParameters.caseId === undefined) {
68
- throw new runtime.RequiredError('caseId', 'Required parameter requestParameters.caseId was null or undefined when calling removeReferralCodeFromCaseUsingDELETE.');
69
- }
70
- if (requestParameters.codeId === null || requestParameters.codeId === undefined) {
71
- throw new runtime.RequiredError('codeId', 'Required parameter requestParameters.codeId was null or undefined when calling removeReferralCodeFromCaseUsingDELETE.');
72
- }
73
- const queryParameters = {};
74
- const headerParameters = {};
75
- const response = yield this.request({
76
- path: `/api/v1/cases/{caseId}/referralcode/{codeId}`.replace(`{${"caseId"}}`, encodeURIComponent(String(requestParameters.caseId))).replace(`{${"codeId"}}`, encodeURIComponent(String(requestParameters.codeId))),
77
- method: 'DELETE',
78
- headers: headerParameters,
79
- query: queryParameters,
80
- });
81
- return new runtime.VoidApiResponse(response);
82
- });
83
- }
84
- /**
85
- * removeReferralCodeFromCase
86
- */
87
- removeReferralCodeFromCaseUsingDELETE(requestParameters) {
88
- return __awaiter(this, void 0, void 0, function* () {
89
- yield this.removeReferralCodeFromCaseUsingDELETERaw(requestParameters);
90
- });
91
- }
92
62
  /**
93
63
  * removeReferralCodeFromCaseV2
94
64
  */
@@ -21,6 +21,12 @@ export interface SaveBillingProductOptionRequest {
21
21
  * @memberof SaveBillingProductOptionRequest
22
22
  */
23
23
  interval?: SaveBillingProductOptionRequestIntervalEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SaveBillingProductOptionRequest
28
+ */
29
+ offerType?: SaveBillingProductOptionRequestOfferTypeEnum;
24
30
  }
25
31
  export declare function SaveBillingProductOptionRequestFromJSON(json: any): SaveBillingProductOptionRequest;
26
32
  export declare function SaveBillingProductOptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveBillingProductOptionRequest;
@@ -36,3 +42,11 @@ export declare enum SaveBillingProductOptionRequestIntervalEnum {
36
42
  WEEKLY = "WEEKLY",
37
43
  YEARLY = "YEARLY"
38
44
  }
45
+ /**
46
+ * @export
47
+ * @enum {string}
48
+ */
49
+ export declare enum SaveBillingProductOptionRequestOfferTypeEnum {
50
+ _1MMONTHLY = "TRIAL_1M_MONTHLY",
51
+ _2MYEARLYUPFRONT = "TRIAL_2M_YEARLY_UPFRONT"
52
+ }
@@ -21,6 +21,7 @@ export function SaveBillingProductOptionRequestFromJSONTyped(json, ignoreDiscrim
21
21
  }
22
22
  return {
23
23
  'interval': !exists(json, 'interval') ? undefined : json['interval'],
24
+ 'offerType': !exists(json, 'offerType') ? undefined : json['offerType'],
24
25
  };
25
26
  }
26
27
  export function SaveBillingProductOptionRequestToJSON(value) {
@@ -32,6 +33,7 @@ export function SaveBillingProductOptionRequestToJSON(value) {
32
33
  }
33
34
  return {
34
35
  'interval': value.interval,
36
+ 'offerType': value.offerType,
35
37
  };
36
38
  }
37
39
  /**
@@ -46,3 +48,12 @@ export var SaveBillingProductOptionRequestIntervalEnum;
46
48
  SaveBillingProductOptionRequestIntervalEnum["WEEKLY"] = "WEEKLY";
47
49
  SaveBillingProductOptionRequestIntervalEnum["YEARLY"] = "YEARLY";
48
50
  })(SaveBillingProductOptionRequestIntervalEnum || (SaveBillingProductOptionRequestIntervalEnum = {}));
51
+ /**
52
+ * @export
53
+ * @enum {string}
54
+ */
55
+ export var SaveBillingProductOptionRequestOfferTypeEnum;
56
+ (function (SaveBillingProductOptionRequestOfferTypeEnum) {
57
+ SaveBillingProductOptionRequestOfferTypeEnum["_1MMONTHLY"] = "TRIAL_1M_MONTHLY";
58
+ SaveBillingProductOptionRequestOfferTypeEnum["_2MYEARLYUPFRONT"] = "TRIAL_2M_YEARLY_UPFRONT";
59
+ })(SaveBillingProductOptionRequestOfferTypeEnum || (SaveBillingProductOptionRequestOfferTypeEnum = {}));
@@ -1089,8 +1089,7 @@ export interface paths {
1089
1089
  * @description Apply referral code to a case to adjust the estimated cost and/or to assign the rightful lawfirm. This operation is idempotent
1090
1090
  */
1091
1091
  post: operations["applyReferralCodeUsingPOST"];
1092
- /** removeReferralCodeFromCase */
1093
- delete: operations["removeReferralCodeFromCaseUsingDELETE"];
1092
+ delete?: never;
1094
1093
  options?: never;
1095
1094
  head?: never;
1096
1095
  patch?: never;
@@ -14196,6 +14195,8 @@ export interface components {
14196
14195
  SaveBillingProductOptionRequest: {
14197
14196
  /** @enum {string} */
14198
14197
  interval?: PathsApiV1CasesCaseIdCustomerCostGetParametersQueryPeriod;
14198
+ /** @enum {string} */
14199
+ offerType?: CreateBillingSubscriptionRequestPromoOfferType;
14199
14200
  };
14200
14201
  /** SaveCaseNotesRequest */
14201
14202
  SaveCaseNotesRequest: {
@@ -20075,50 +20076,6 @@ export interface operations {
20075
20076
  };
20076
20077
  };
20077
20078
  };
20078
- removeReferralCodeFromCaseUsingDELETE: {
20079
- parameters: {
20080
- query?: never;
20081
- header?: never;
20082
- path: {
20083
- /** @description caseId */
20084
- caseId: string;
20085
- /** @description codeId */
20086
- codeId: string;
20087
- };
20088
- cookie?: never;
20089
- };
20090
- requestBody?: never;
20091
- responses: {
20092
- /** @description OK */
20093
- 200: {
20094
- headers: {
20095
- [name: string]: unknown;
20096
- };
20097
- content?: never;
20098
- };
20099
- /** @description No Content */
20100
- 204: {
20101
- headers: {
20102
- [name: string]: unknown;
20103
- };
20104
- content?: never;
20105
- };
20106
- /** @description Unauthorized */
20107
- 401: {
20108
- headers: {
20109
- [name: string]: unknown;
20110
- };
20111
- content?: never;
20112
- };
20113
- /** @description Forbidden */
20114
- 403: {
20115
- headers: {
20116
- [name: string]: unknown;
20117
- };
20118
- content?: never;
20119
- };
20120
- };
20121
- };
20122
20079
  removeReferralCodeFromCaseV2UsingDELETE: {
20123
20080
  parameters: {
20124
20081
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@otr-app/shared-backend-generated-client",
3
- "version": "2.5.79",
3
+ "version": "2.5.81",
4
4
  "main": "dist/otrBackendService.min.js",
5
5
  "files": [
6
6
  "/dist"