Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.125.0] - 2024.07.28
## [3.126.0] - 2024.07.04

### Modified
- [licenses] Add coterminosity to schedule update

## [3.125.0] - 2024.06.28

### Modified
- [partners] Add partner register
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "git",
"url": "https://github.com/ArrowSphere/nodejs-api-client.git"
},
"version": "3.125.0",
"version": "3.126.0",
"description": "Node.js client for ArrowSphere's public API",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
11 changes: 11 additions & 0 deletions src/licenses/entities/schedule/getScheduleTaskResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum GetScheduleTaskResultFields {
COLUMN_STATUS_CODE = 'statusCode',
COLUMN_TERM = 'term',
COLUMN_UPDATED_AT = 'updatedAt',
COLUMN_COTERMINOSITY_DATE = 'coterminosityDate',
}

export type GetScheduleTaskResultData = {
Expand All @@ -29,6 +30,7 @@ export type GetScheduleTaskResultData = {
[GetScheduleTaskResultFields.COLUMN_STATUS_CODE]: string;
[GetScheduleTaskResultFields.COLUMN_TERM]: number;
[GetScheduleTaskResultFields.COLUMN_UPDATED_AT]: string;
[GetScheduleTaskResultFields.COLUMN_COTERMINOSITY_DATE]: string;
};

export class GetScheduleTaskResult extends AbstractEntity<GetScheduleTaskResultData> {
Expand All @@ -41,6 +43,7 @@ export class GetScheduleTaskResult extends AbstractEntity<GetScheduleTaskResultD
readonly #statusCode: string;
readonly #term: number;
readonly #updatedAt: string;
readonly #coterminosityDate: string;

public constructor(dataInput: GetScheduleTaskResultData) {
super(dataInput);
Expand All @@ -58,6 +61,8 @@ export class GetScheduleTaskResult extends AbstractEntity<GetScheduleTaskResultD
dataInput[GetScheduleTaskResultFields.COLUMN_STATUS_CODE];
this.#term = dataInput[GetScheduleTaskResultFields.COLUMN_TERM];
this.#updatedAt = dataInput[GetScheduleTaskResultFields.COLUMN_UPDATED_AT];
this.#coterminosityDate =
dataInput[GetScheduleTaskResultFields.COLUMN_COTERMINOSITY_DATE];
}

public get createdAt(): string {
Expand Down Expand Up @@ -96,6 +101,10 @@ export class GetScheduleTaskResult extends AbstractEntity<GetScheduleTaskResultD
return this.#updatedAt;
}

public get coterminosityDate(): string {
return this.#coterminosityDate;
}

public toJSON(): GetScheduleTaskResultData {
return {
[GetScheduleTaskResultFields.COLUMN_CREATED_AT]: this.createdAt,
Expand All @@ -108,6 +117,8 @@ export class GetScheduleTaskResult extends AbstractEntity<GetScheduleTaskResultD
[GetScheduleTaskResultFields.COLUMN_STATUS_CODE]: this.statusCode,
[GetScheduleTaskResultFields.COLUMN_TERM]: this.term,
[GetScheduleTaskResultFields.COLUMN_UPDATED_AT]: this.updatedAt,
[GetScheduleTaskResultFields.COLUMN_COTERMINOSITY_DATE]: this
.coterminosityDate,
};
}
}
1 change: 1 addition & 0 deletions src/licenses/licensesClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ export type SaveBillingCommentsInputType = {
};

export type ScheduleTasks = {
coterminosityDate?: string;
periodicity?: number;
term?: number;
seats?: number;
Expand Down
3 changes: 3 additions & 0 deletions tests/licenses/licenses.mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ const PAYLOAD_SCHEDULES_TASKS: GetScheduleTaskResultData[] = [
statusCode: '66',
term: 8640,
updatedAt: '2024-04-07T20:27:09+00:00',
coterminosityDate: '2025-04-06T20:23:52+00:00',
},
];

Expand Down Expand Up @@ -424,5 +425,7 @@ export const LICENSE_SCHEDULED_TASK_GET_RESPONSE: GetData<GetScheduleTaskResultD
[GetScheduleTaskResultFields.COLUMN_TERM]: 8640,
[GetScheduleTaskResultFields.COLUMN_UPDATED_AT]:
'2024-04-07T20:27:09+00:00',
[GetScheduleTaskResultFields.COLUMN_COTERMINOSITY_DATE]:
'2025-04-06T20:23:52+00:00',
},
};