airborne-core-cli 0.14.1 → 0.15.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/index.js +45 -15
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -2,6 +2,66 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## airborne_core_cli-v0.2.0 - 2025-11-18
6
+ #### Features
7
+ - add pagination to list packages and releases - (760909b) - Yash Rajput
8
+
9
+ - - -
10
+
11
+ ## v0.14.1 - 2025-11-18
12
+ #### Miscellaneous Chores
13
+ - **(version)** v0.14.1 [skip ci] - (bdcba5f) - Airborne Bot
14
+
15
+ - - -
16
+
17
+ ## v0.14.0 - 2025-11-18
18
+ #### Miscellaneous Chores
19
+ - **(version)** v0.14.0 [skip ci] - (f336a22) - Airborne Bot
20
+
21
+ - - -
22
+
23
+ ## v0.13.6 - 2025-11-18
24
+ #### Miscellaneous Chores
25
+ - **(version)** v0.13.6 [skip ci] - (0038bbd) - Airborne Bot
26
+
27
+ - - -
28
+
29
+ ## v0.13.5 - 2025-11-18
30
+ #### Miscellaneous Chores
31
+ - **(version)** v0.13.5 [skip ci] - (3f20b3d) - Airborne Bot
32
+
33
+ - - -
34
+
35
+ ## v0.13.4 - 2025-11-18
36
+ #### Miscellaneous Chores
37
+ - **(version)** v0.13.4 [skip ci] - (a0cb64d) - Airborne Bot
38
+
39
+ - - -
40
+
41
+ ## v0.13.3 - 2025-11-18
42
+ #### Miscellaneous Chores
43
+ - **(version)** v0.13.3 [skip ci] - (8877854) - Airborne Bot
44
+
45
+ - - -
46
+
47
+ ## v0.13.2 - 2025-11-18
48
+ #### Miscellaneous Chores
49
+ - **(version)** v0.13.2 [skip ci] - (934d450) - Airborne Bot
50
+
51
+ - - -
52
+
53
+ ## v0.13.1 - 2025-11-18
54
+ #### Miscellaneous Chores
55
+ - **(version)** v0.13.1 [skip ci] - (5cd3d70) - Airborne Bot
56
+
57
+ - - -
58
+
59
+ ## v0.13.0 - 2025-11-18
60
+ #### Miscellaneous Chores
61
+ - **(version)** v0.13.0 [skip ci] - (bdbd374) - Airborne Bot
62
+
63
+ - - -
64
+
5
65
  ## airborne_core_cli-v0.1.2 - 2025-10-28
6
66
  #### Bug Fixes
7
67
  - make CLI name dynamic in configure command - (13ab4b7) - Yash Rajput
package/index.js CHANGED
@@ -117,7 +117,7 @@ function printColoredJSON(obj, indent = 2) {
117
117
  const program = new Command()
118
118
  .name("airborne-core-cli")
119
119
  .description("Command-line interface for Airborne OTA operations")
120
- .version("0.14.1");
120
+ .version("0.15.0");
121
121
 
122
122
  program
123
123
  .command("CreateApplication")
@@ -1006,20 +1006,22 @@ JSON file format (params.json):
1006
1006
  program
1007
1007
  .command("ListPackages")
1008
1008
  .argument('[params_file]', 'JSON file containing all parameters (use @params.json format)')
1009
- .option("--offset <offset>", "offset parameter", (value) => {
1009
+ .option("--page <page>", "page parameter", (value) => {
1010
1010
  const parsed = parseInt(value, 10);
1011
1011
  if (isNaN(parsed)) {
1012
- throw new Error("--offset must be a valid integer");
1012
+ throw new Error("--page must be a valid integer");
1013
1013
  }
1014
1014
  return parsed;
1015
1015
  })
1016
- .option("--limit <limit>", "limit parameter", (value) => {
1016
+ .option("--count <count>", "count parameter", (value) => {
1017
1017
  const parsed = parseInt(value, 10);
1018
1018
  if (isNaN(parsed)) {
1019
- throw new Error("--limit must be a valid integer");
1019
+ throw new Error("--count must be a valid integer");
1020
1020
  }
1021
1021
  return parsed;
1022
1022
  })
1023
+ .option("--search <search>", "search parameter")
1024
+ .option("--all <all>", "all parameter")
1023
1025
  .option("--organisation <organisation>", "organisation parameter")
1024
1026
  .option("--application <application>", "application parameter")
1025
1027
  .option("--token <token>", "Bearer token for authentication")
@@ -1031,17 +1033,19 @@ Usage 1 - Individual options:
1031
1033
  --organisation <organisation> \\
1032
1034
  --application <application> \\
1033
1035
  --token <string> \\
1034
- [--offset <offset>]
1036
+ [--page <page>]
1035
1037
 
1036
1038
  Usage 2 - JSON file:
1037
1039
  airborne-core-cli ListPackages @file.json
1038
1040
 
1039
1041
  Usage 3 - Mixed Usage:
1040
- $ airborne-core-cli ListPackages @params.json --offset <value> --limit <value> --token <value>
1042
+ $ airborne-core-cli ListPackages @params.json --page <value> --count <value> --token <value>
1041
1043
 
1042
1044
  Parameters:
1043
- --offset <integer> (optional) : Offset for pagination
1044
- --limit <integer> (optional) : Limit for pagination
1045
+ --page <integer> (optional) : Offset for pagination (default: 1)
1046
+ --count <integer> (optional) : Limit for pagination (default: 50)
1047
+ --search <string> (optional) : Search term for filtering packages using index file path
1048
+ --all <boolean> (optional) : If true, fetch all packages without pagination
1045
1049
  --organisation <string> (required) : Name of the organisation
1046
1050
  --application <string> (required) : Name of the application
1047
1051
  --token <string> (required) : Bearer token for authentication
@@ -1056,18 +1060,20 @@ Examples:
1056
1060
  --organisation <organisation> \\
1057
1061
  --application <application> \\
1058
1062
  --token <string> \\
1059
- [--offset <offset>]
1063
+ [--page <page>]
1060
1064
 
1061
1065
  2. Using JSON file:
1062
1066
  $ airborne-core-cli ListPackages @params.json
1063
1067
 
1064
1068
  3. Mixed approach (JSON file + CLI overrides):
1065
- $ airborne-core-cli ListPackages @params.json --offset <value> --limit <value> --token <value>
1069
+ $ airborne-core-cli ListPackages @params.json --page <value> --count <value> --token <value>
1066
1070
 
1067
1071
  JSON file format (params.json):
1068
1072
  {
1069
- "offset": 123,
1070
- "limit": 123,
1073
+ "page": 123,
1074
+ "count": 123,
1075
+ "search": "example_search",
1076
+ "all": "example_all",
1071
1077
  "organisation": "example_organisation",
1072
1078
  "application": "example_application",
1073
1079
  "token": "your_bearer_token_here"
@@ -1090,6 +1096,22 @@ program
1090
1096
  .command("ListReleases")
1091
1097
  .argument('[params_file]', 'JSON file containing all parameters (use @params.json format)')
1092
1098
  .option("--dimension <dimension>", "dimension parameter")
1099
+ .option("--page <page>", "page parameter", (value) => {
1100
+ const parsed = parseInt(value, 10);
1101
+ if (isNaN(parsed)) {
1102
+ throw new Error("--page must be a valid integer");
1103
+ }
1104
+ return parsed;
1105
+ })
1106
+ .option("--count <count>", "count parameter", (value) => {
1107
+ const parsed = parseInt(value, 10);
1108
+ if (isNaN(parsed)) {
1109
+ throw new Error("--count must be a valid integer");
1110
+ }
1111
+ return parsed;
1112
+ })
1113
+ .option("--all <all>", "all parameter")
1114
+ .option("--status <status>", "status parameter")
1093
1115
  .option("--organisation <organisation>", "organisation parameter")
1094
1116
  .option("--application <application>", "application parameter")
1095
1117
  .option("--token <token>", "Bearer token for authentication")
@@ -1107,10 +1129,14 @@ Usage 2 - JSON file:
1107
1129
  airborne-core-cli ListReleases @file.json
1108
1130
 
1109
1131
  Usage 3 - Mixed Usage:
1110
- $ airborne-core-cli ListReleases @params.json --dimension <value> --organisation <value> --token <value>
1132
+ $ airborne-core-cli ListReleases @params.json --dimension <value> --page <value> --token <value>
1111
1133
 
1112
1134
  Parameters:
1113
1135
  --dimension <string> (optional) : dimension to filter releases in format key1=value1;key2=value2
1136
+ --page <integer> (optional) : Page number for pagination (default: 1)
1137
+ --count <integer> (optional) : Count of releases per page for pagination (default: 50)
1138
+ --all <boolean> (optional) : If true, fetch all releases without pagination
1139
+ --status <string> (optional) : Status to filter releases
1114
1140
  --organisation <string> (required) : Name of the organisation
1115
1141
  --application <string> (required) : Name of the application
1116
1142
  --token <string> (required) : Bearer token for authentication
@@ -1131,11 +1157,15 @@ Examples:
1131
1157
  $ airborne-core-cli ListReleases @params.json
1132
1158
 
1133
1159
  3. Mixed approach (JSON file + CLI overrides):
1134
- $ airborne-core-cli ListReleases @params.json --dimension <value> --organisation <value> --token <value>
1160
+ $ airborne-core-cli ListReleases @params.json --dimension <value> --page <value> --token <value>
1135
1161
 
1136
1162
  JSON file format (params.json):
1137
1163
  {
1138
1164
  "dimension": "example_dimension",
1165
+ "page": 123,
1166
+ "count": 123,
1167
+ "all": "example_all",
1168
+ "status": "example_status",
1139
1169
  "organisation": "example_organisation",
1140
1170
  "application": "example_application",
1141
1171
  "token": "your_bearer_token_here"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airborne-core-cli",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "airborne-core-cli": "bin.js"