@easyedu/js-lsm-api 1.54.0 → 1.55.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.
- package/README.md +2 -2
- package/dist/esm/models/PostOfferCatalogResponse.d.ts +25 -1
- package/dist/esm/models/PostOfferCatalogResponse.js +12 -0
- package/dist/models/PostOfferCatalogResponse.d.ts +25 -1
- package/dist/models/PostOfferCatalogResponse.js +12 -0
- package/docs/PostOfferCatalogResponse.md +7 -0
- package/package.json +1 -1
- package/src/models/PostOfferCatalogResponse.ts +34 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.55.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -472,7 +472,7 @@ and is automatically generated by the
|
|
|
472
472
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
473
473
|
|
|
474
474
|
- API version: `1.0.0`
|
|
475
|
-
- Package version: `1.
|
|
475
|
+
- Package version: `1.55.0`
|
|
476
476
|
- Generator version: `7.21.0`
|
|
477
477
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
478
478
|
|
|
@@ -10,17 +10,41 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* Result of fanning a catalog out into per-course offers. Outcomes are bucketed
|
|
14
|
+
* so operators can distinguish brand-new shares from reactivations of
|
|
15
|
+
* previously-revoked shares, idempotent no-ops on already-active shares, and
|
|
16
|
+
* real failures.
|
|
13
17
|
*
|
|
14
18
|
* @export
|
|
15
19
|
* @interface PostOfferCatalogResponse
|
|
16
20
|
*/
|
|
17
21
|
export interface PostOfferCatalogResponse {
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* Brand-new `course_share` rows inserted from this catalog offer
|
|
20
24
|
* @type {number}
|
|
21
25
|
* @memberof PostOfferCatalogResponse
|
|
22
26
|
*/
|
|
23
27
|
createdShareCount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Existing Revoked or Declined shares that were flipped back to Offered
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostOfferCatalogResponse
|
|
32
|
+
*/
|
|
33
|
+
reactivatedShareCount: number;
|
|
34
|
+
/**
|
|
35
|
+
* Already-active shares (Offered / AcceptedMirror / AcceptedClone). Terms
|
|
36
|
+
* may have been updated in place without disturbing the target's state.
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PostOfferCatalogResponse
|
|
40
|
+
*/
|
|
41
|
+
unchangedShareCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Shares that could not be created due to a database or validation error
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PostOfferCatalogResponse
|
|
46
|
+
*/
|
|
47
|
+
failedShareCount: number;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
50
|
* Check if a given object implements the PostOfferCatalogResponse interface.
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
export function instanceOfPostOfferCatalogResponse(value) {
|
|
18
18
|
if (!('createdShareCount' in value) || value['createdShareCount'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
+
if (!('reactivatedShareCount' in value) || value['reactivatedShareCount'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('unchangedShareCount' in value) || value['unchangedShareCount'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('failedShareCount' in value) || value['failedShareCount'] === undefined)
|
|
25
|
+
return false;
|
|
20
26
|
return true;
|
|
21
27
|
}
|
|
22
28
|
export function PostOfferCatalogResponseFromJSON(json) {
|
|
@@ -28,6 +34,9 @@ export function PostOfferCatalogResponseFromJSONTyped(json, ignoreDiscriminator)
|
|
|
28
34
|
}
|
|
29
35
|
return {
|
|
30
36
|
'createdShareCount': json['created_share_count'],
|
|
37
|
+
'reactivatedShareCount': json['reactivated_share_count'],
|
|
38
|
+
'unchangedShareCount': json['unchanged_share_count'],
|
|
39
|
+
'failedShareCount': json['failed_share_count'],
|
|
31
40
|
};
|
|
32
41
|
}
|
|
33
42
|
export function PostOfferCatalogResponseToJSON(json) {
|
|
@@ -39,5 +48,8 @@ export function PostOfferCatalogResponseToJSONTyped(value, ignoreDiscriminator =
|
|
|
39
48
|
}
|
|
40
49
|
return {
|
|
41
50
|
'created_share_count': value['createdShareCount'],
|
|
51
|
+
'reactivated_share_count': value['reactivatedShareCount'],
|
|
52
|
+
'unchanged_share_count': value['unchangedShareCount'],
|
|
53
|
+
'failed_share_count': value['failedShareCount'],
|
|
42
54
|
};
|
|
43
55
|
}
|
|
@@ -10,17 +10,41 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* Result of fanning a catalog out into per-course offers. Outcomes are bucketed
|
|
14
|
+
* so operators can distinguish brand-new shares from reactivations of
|
|
15
|
+
* previously-revoked shares, idempotent no-ops on already-active shares, and
|
|
16
|
+
* real failures.
|
|
13
17
|
*
|
|
14
18
|
* @export
|
|
15
19
|
* @interface PostOfferCatalogResponse
|
|
16
20
|
*/
|
|
17
21
|
export interface PostOfferCatalogResponse {
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* Brand-new `course_share` rows inserted from this catalog offer
|
|
20
24
|
* @type {number}
|
|
21
25
|
* @memberof PostOfferCatalogResponse
|
|
22
26
|
*/
|
|
23
27
|
createdShareCount: number;
|
|
28
|
+
/**
|
|
29
|
+
* Existing Revoked or Declined shares that were flipped back to Offered
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostOfferCatalogResponse
|
|
32
|
+
*/
|
|
33
|
+
reactivatedShareCount: number;
|
|
34
|
+
/**
|
|
35
|
+
* Already-active shares (Offered / AcceptedMirror / AcceptedClone). Terms
|
|
36
|
+
* may have been updated in place without disturbing the target's state.
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PostOfferCatalogResponse
|
|
40
|
+
*/
|
|
41
|
+
unchangedShareCount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Shares that could not be created due to a database or validation error
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PostOfferCatalogResponse
|
|
46
|
+
*/
|
|
47
|
+
failedShareCount: number;
|
|
24
48
|
}
|
|
25
49
|
/**
|
|
26
50
|
* Check if a given object implements the PostOfferCatalogResponse interface.
|
|
@@ -24,6 +24,12 @@ exports.PostOfferCatalogResponseToJSONTyped = PostOfferCatalogResponseToJSONType
|
|
|
24
24
|
function instanceOfPostOfferCatalogResponse(value) {
|
|
25
25
|
if (!('createdShareCount' in value) || value['createdShareCount'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('reactivatedShareCount' in value) || value['reactivatedShareCount'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('unchangedShareCount' in value) || value['unchangedShareCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('failedShareCount' in value) || value['failedShareCount'] === undefined)
|
|
32
|
+
return false;
|
|
27
33
|
return true;
|
|
28
34
|
}
|
|
29
35
|
function PostOfferCatalogResponseFromJSON(json) {
|
|
@@ -35,6 +41,9 @@ function PostOfferCatalogResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
41
|
}
|
|
36
42
|
return {
|
|
37
43
|
'createdShareCount': json['created_share_count'],
|
|
44
|
+
'reactivatedShareCount': json['reactivated_share_count'],
|
|
45
|
+
'unchangedShareCount': json['unchanged_share_count'],
|
|
46
|
+
'failedShareCount': json['failed_share_count'],
|
|
38
47
|
};
|
|
39
48
|
}
|
|
40
49
|
function PostOfferCatalogResponseToJSON(json) {
|
|
@@ -46,5 +55,8 @@ function PostOfferCatalogResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
46
55
|
}
|
|
47
56
|
return {
|
|
48
57
|
'created_share_count': value['createdShareCount'],
|
|
58
|
+
'reactivated_share_count': value['reactivatedShareCount'],
|
|
59
|
+
'unchanged_share_count': value['unchangedShareCount'],
|
|
60
|
+
'failed_share_count': value['failedShareCount'],
|
|
49
61
|
};
|
|
50
62
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
# PostOfferCatalogResponse
|
|
3
3
|
|
|
4
|
+
Result of fanning a catalog out into per-course offers. Outcomes are bucketed so operators can distinguish brand-new shares from reactivations of previously-revoked shares, idempotent no-ops on already-active shares, and real failures.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
7
8
|
Name | Type
|
|
8
9
|
------------ | -------------
|
|
9
10
|
`createdShareCount` | number
|
|
11
|
+
`reactivatedShareCount` | number
|
|
12
|
+
`unchangedShareCount` | number
|
|
13
|
+
`failedShareCount` | number
|
|
10
14
|
|
|
11
15
|
## Example
|
|
12
16
|
|
|
@@ -16,6 +20,9 @@ import type { PostOfferCatalogResponse } from '@easyedu/js-lsm-api'
|
|
|
16
20
|
// TODO: Update the object below with actual values
|
|
17
21
|
const example = {
|
|
18
22
|
"createdShareCount": null,
|
|
23
|
+
"reactivatedShareCount": null,
|
|
24
|
+
"unchangedShareCount": null,
|
|
25
|
+
"failedShareCount": null,
|
|
19
26
|
} satisfies PostOfferCatalogResponse
|
|
20
27
|
|
|
21
28
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -14,17 +14,41 @@
|
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
|
+
* Result of fanning a catalog out into per-course offers. Outcomes are bucketed
|
|
18
|
+
* so operators can distinguish brand-new shares from reactivations of
|
|
19
|
+
* previously-revoked shares, idempotent no-ops on already-active shares, and
|
|
20
|
+
* real failures.
|
|
17
21
|
*
|
|
18
22
|
* @export
|
|
19
23
|
* @interface PostOfferCatalogResponse
|
|
20
24
|
*/
|
|
21
25
|
export interface PostOfferCatalogResponse {
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* Brand-new `course_share` rows inserted from this catalog offer
|
|
24
28
|
* @type {number}
|
|
25
29
|
* @memberof PostOfferCatalogResponse
|
|
26
30
|
*/
|
|
27
31
|
createdShareCount: number;
|
|
32
|
+
/**
|
|
33
|
+
* Existing Revoked or Declined shares that were flipped back to Offered
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof PostOfferCatalogResponse
|
|
36
|
+
*/
|
|
37
|
+
reactivatedShareCount: number;
|
|
38
|
+
/**
|
|
39
|
+
* Already-active shares (Offered / AcceptedMirror / AcceptedClone). Terms
|
|
40
|
+
* may have been updated in place without disturbing the target's state.
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof PostOfferCatalogResponse
|
|
44
|
+
*/
|
|
45
|
+
unchangedShareCount: number;
|
|
46
|
+
/**
|
|
47
|
+
* Shares that could not be created due to a database or validation error
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof PostOfferCatalogResponse
|
|
50
|
+
*/
|
|
51
|
+
failedShareCount: number;
|
|
28
52
|
}
|
|
29
53
|
|
|
30
54
|
/**
|
|
@@ -32,6 +56,9 @@ export interface PostOfferCatalogResponse {
|
|
|
32
56
|
*/
|
|
33
57
|
export function instanceOfPostOfferCatalogResponse(value: object): value is PostOfferCatalogResponse {
|
|
34
58
|
if (!('createdShareCount' in value) || value['createdShareCount'] === undefined) return false;
|
|
59
|
+
if (!('reactivatedShareCount' in value) || value['reactivatedShareCount'] === undefined) return false;
|
|
60
|
+
if (!('unchangedShareCount' in value) || value['unchangedShareCount'] === undefined) return false;
|
|
61
|
+
if (!('failedShareCount' in value) || value['failedShareCount'] === undefined) return false;
|
|
35
62
|
return true;
|
|
36
63
|
}
|
|
37
64
|
|
|
@@ -46,6 +73,9 @@ export function PostOfferCatalogResponseFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
46
73
|
return {
|
|
47
74
|
|
|
48
75
|
'createdShareCount': json['created_share_count'],
|
|
76
|
+
'reactivatedShareCount': json['reactivated_share_count'],
|
|
77
|
+
'unchangedShareCount': json['unchanged_share_count'],
|
|
78
|
+
'failedShareCount': json['failed_share_count'],
|
|
49
79
|
};
|
|
50
80
|
}
|
|
51
81
|
|
|
@@ -61,6 +91,9 @@ export function PostOfferCatalogResponseToJSONTyped(value?: PostOfferCatalogResp
|
|
|
61
91
|
return {
|
|
62
92
|
|
|
63
93
|
'created_share_count': value['createdShareCount'],
|
|
94
|
+
'reactivated_share_count': value['reactivatedShareCount'],
|
|
95
|
+
'unchanged_share_count': value['unchangedShareCount'],
|
|
96
|
+
'failed_share_count': value['failedShareCount'],
|
|
64
97
|
};
|
|
65
98
|
}
|
|
66
99
|
|