@platzio/sdk 0.5.0-beta.11 → 0.5.0-beta.12
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/.github/workflows/release.yaml +2 -2
- package/api.ts +173 -4
- package/openapi.yaml +94 -2
- package/package.json +1 -1
- package/version-override.txt +0 -2
|
@@ -23,9 +23,9 @@ jobs:
|
|
|
23
23
|
run: |
|
|
24
24
|
if [ -f version-override.txt ]
|
|
25
25
|
then
|
|
26
|
-
echo "backend_tag
|
|
26
|
+
echo "backend_tag=v`cat version-override.txt`" >> "$GITHUB_OUTPUT"
|
|
27
27
|
else
|
|
28
|
-
echo "backend_tag
|
|
28
|
+
echo "backend_tag=v`cat package.json | jq -r .version`" >> "$GITHUB_OUTPUT"
|
|
29
29
|
fi
|
|
30
30
|
|
|
31
31
|
- name: ⬇️ Download OpenAPI schema
|
package/api.ts
CHANGED
|
@@ -478,10 +478,10 @@ export interface AllDeployments200ResponseItemsInner {
|
|
|
478
478
|
'revision_id'?: string | null;
|
|
479
479
|
/**
|
|
480
480
|
*
|
|
481
|
-
* @type {
|
|
481
|
+
* @type {DeploymentReportedStatus}
|
|
482
482
|
* @memberof AllDeployments200ResponseItemsInner
|
|
483
483
|
*/
|
|
484
|
-
'reported_status'
|
|
484
|
+
'reported_status': DeploymentReportedStatus;
|
|
485
485
|
/**
|
|
486
486
|
*
|
|
487
487
|
* @type {string}
|
|
@@ -1435,10 +1435,10 @@ export interface Deployment {
|
|
|
1435
1435
|
'revision_id'?: string | null;
|
|
1436
1436
|
/**
|
|
1437
1437
|
*
|
|
1438
|
-
* @type {
|
|
1438
|
+
* @type {DeploymentReportedStatus}
|
|
1439
1439
|
* @memberof Deployment
|
|
1440
1440
|
*/
|
|
1441
|
-
'reported_status'
|
|
1441
|
+
'reported_status': DeploymentReportedStatus;
|
|
1442
1442
|
/**
|
|
1443
1443
|
*
|
|
1444
1444
|
* @type {string}
|
|
@@ -1599,6 +1599,175 @@ export interface DeploymentReinstallTask {
|
|
|
1599
1599
|
*/
|
|
1600
1600
|
'reason': string;
|
|
1601
1601
|
}
|
|
1602
|
+
/**
|
|
1603
|
+
*
|
|
1604
|
+
* @export
|
|
1605
|
+
* @interface DeploymentRepootedMetric
|
|
1606
|
+
*/
|
|
1607
|
+
export interface DeploymentRepootedMetric {
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @type {string}
|
|
1611
|
+
* @memberof DeploymentRepootedMetric
|
|
1612
|
+
*/
|
|
1613
|
+
'value': string;
|
|
1614
|
+
/**
|
|
1615
|
+
*
|
|
1616
|
+
* @type {string}
|
|
1617
|
+
* @memberof DeploymentRepootedMetric
|
|
1618
|
+
*/
|
|
1619
|
+
'unit': string;
|
|
1620
|
+
/**
|
|
1621
|
+
*
|
|
1622
|
+
* @type {string}
|
|
1623
|
+
* @memberof DeploymentRepootedMetric
|
|
1624
|
+
*/
|
|
1625
|
+
'short_description': string;
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @type {DeploymentReportedStatusColor}
|
|
1629
|
+
* @memberof DeploymentRepootedMetric
|
|
1630
|
+
*/
|
|
1631
|
+
'color'?: DeploymentReportedStatusColor | null;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @export
|
|
1638
|
+
* @interface DeploymentReportedNotice
|
|
1639
|
+
*/
|
|
1640
|
+
export interface DeploymentReportedNotice {
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @type {DeploymentReportedNoticeLevel}
|
|
1644
|
+
* @memberof DeploymentReportedNotice
|
|
1645
|
+
*/
|
|
1646
|
+
'level': DeploymentReportedNoticeLevel;
|
|
1647
|
+
/**
|
|
1648
|
+
*
|
|
1649
|
+
* @type {string}
|
|
1650
|
+
* @memberof DeploymentReportedNotice
|
|
1651
|
+
*/
|
|
1652
|
+
'text': string;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
|
|
1656
|
+
/**
|
|
1657
|
+
*
|
|
1658
|
+
* @export
|
|
1659
|
+
* @enum {string}
|
|
1660
|
+
*/
|
|
1661
|
+
|
|
1662
|
+
export const DeploymentReportedNoticeLevel = {
|
|
1663
|
+
Info: 'Info',
|
|
1664
|
+
Warning: 'Warning',
|
|
1665
|
+
Danger: 'Danger'
|
|
1666
|
+
} as const;
|
|
1667
|
+
|
|
1668
|
+
export type DeploymentReportedNoticeLevel = typeof DeploymentReportedNoticeLevel[keyof typeof DeploymentReportedNoticeLevel];
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
*
|
|
1673
|
+
* @export
|
|
1674
|
+
* @interface DeploymentReportedStatus
|
|
1675
|
+
*/
|
|
1676
|
+
export interface DeploymentReportedStatus {
|
|
1677
|
+
/**
|
|
1678
|
+
*
|
|
1679
|
+
* @type {string}
|
|
1680
|
+
* @memberof DeploymentReportedStatus
|
|
1681
|
+
*/
|
|
1682
|
+
'timestamp': string;
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @type {boolean}
|
|
1686
|
+
* @memberof DeploymentReportedStatus
|
|
1687
|
+
*/
|
|
1688
|
+
'get_successful': boolean;
|
|
1689
|
+
/**
|
|
1690
|
+
*
|
|
1691
|
+
* @type {DeploymentReportedStatusContent}
|
|
1692
|
+
* @memberof DeploymentReportedStatus
|
|
1693
|
+
*/
|
|
1694
|
+
'content'?: DeploymentReportedStatusContent | null;
|
|
1695
|
+
/**
|
|
1696
|
+
*
|
|
1697
|
+
* @type {string}
|
|
1698
|
+
* @memberof DeploymentReportedStatus
|
|
1699
|
+
*/
|
|
1700
|
+
'error'?: string | null;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
*
|
|
1704
|
+
* @export
|
|
1705
|
+
* @enum {string}
|
|
1706
|
+
*/
|
|
1707
|
+
|
|
1708
|
+
export const DeploymentReportedStatusColor = {
|
|
1709
|
+
Primary: 'primary',
|
|
1710
|
+
Success: 'success',
|
|
1711
|
+
Danger: 'danger',
|
|
1712
|
+
Warning: 'warning',
|
|
1713
|
+
Secondary: 'secondary'
|
|
1714
|
+
} as const;
|
|
1715
|
+
|
|
1716
|
+
export type DeploymentReportedStatusColor = typeof DeploymentReportedStatusColor[keyof typeof DeploymentReportedStatusColor];
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @export
|
|
1722
|
+
* @interface DeploymentReportedStatusContent
|
|
1723
|
+
*/
|
|
1724
|
+
export interface DeploymentReportedStatusContent {
|
|
1725
|
+
/**
|
|
1726
|
+
*
|
|
1727
|
+
* @type {DeploymentReportedStatusSummary}
|
|
1728
|
+
* @memberof DeploymentReportedStatusContent
|
|
1729
|
+
*/
|
|
1730
|
+
'status': DeploymentReportedStatusSummary;
|
|
1731
|
+
/**
|
|
1732
|
+
*
|
|
1733
|
+
* @type {DeploymentRepootedMetric}
|
|
1734
|
+
* @memberof DeploymentReportedStatusContent
|
|
1735
|
+
*/
|
|
1736
|
+
'primary_metric'?: DeploymentRepootedMetric | null;
|
|
1737
|
+
/**
|
|
1738
|
+
*
|
|
1739
|
+
* @type {Array<DeploymentRepootedMetric>}
|
|
1740
|
+
* @memberof DeploymentReportedStatusContent
|
|
1741
|
+
*/
|
|
1742
|
+
'metrics'?: Array<DeploymentRepootedMetric> | null;
|
|
1743
|
+
/**
|
|
1744
|
+
*
|
|
1745
|
+
* @type {Array<DeploymentReportedNotice>}
|
|
1746
|
+
* @memberof DeploymentReportedStatusContent
|
|
1747
|
+
*/
|
|
1748
|
+
'notices': Array<DeploymentReportedNotice>;
|
|
1749
|
+
}
|
|
1750
|
+
/**
|
|
1751
|
+
*
|
|
1752
|
+
* @export
|
|
1753
|
+
* @interface DeploymentReportedStatusSummary
|
|
1754
|
+
*/
|
|
1755
|
+
export interface DeploymentReportedStatusSummary {
|
|
1756
|
+
/**
|
|
1757
|
+
*
|
|
1758
|
+
* @type {string}
|
|
1759
|
+
* @memberof DeploymentReportedStatusSummary
|
|
1760
|
+
*/
|
|
1761
|
+
'name': string;
|
|
1762
|
+
/**
|
|
1763
|
+
*
|
|
1764
|
+
* @type {DeploymentReportedStatusColor}
|
|
1765
|
+
* @memberof DeploymentReportedStatusSummary
|
|
1766
|
+
*/
|
|
1767
|
+
'color': DeploymentReportedStatusColor;
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
|
|
1602
1771
|
/**
|
|
1603
1772
|
*
|
|
1604
1773
|
* @export
|
package/openapi.yaml
CHANGED
|
@@ -718,6 +718,7 @@ paths:
|
|
|
718
718
|
- cluster_id
|
|
719
719
|
- enabled
|
|
720
720
|
- status
|
|
721
|
+
- reported_status
|
|
721
722
|
- helm_chart_id
|
|
722
723
|
- config
|
|
723
724
|
properties:
|
|
@@ -749,7 +750,7 @@ paths:
|
|
|
749
750
|
format: uuid
|
|
750
751
|
nullable: true
|
|
751
752
|
reported_status:
|
|
752
|
-
|
|
753
|
+
$ref: '#/components/schemas/DeploymentReportedStatus'
|
|
753
754
|
helm_chart_id:
|
|
754
755
|
type: string
|
|
755
756
|
format: uuid
|
|
@@ -2345,6 +2346,7 @@ components:
|
|
|
2345
2346
|
- cluster_id
|
|
2346
2347
|
- enabled
|
|
2347
2348
|
- status
|
|
2349
|
+
- reported_status
|
|
2348
2350
|
- helm_chart_id
|
|
2349
2351
|
- config
|
|
2350
2352
|
properties:
|
|
@@ -2376,7 +2378,7 @@ components:
|
|
|
2376
2378
|
format: uuid
|
|
2377
2379
|
nullable: true
|
|
2378
2380
|
reported_status:
|
|
2379
|
-
|
|
2381
|
+
$ref: '#/components/schemas/DeploymentReportedStatus'
|
|
2380
2382
|
helm_chart_id:
|
|
2381
2383
|
type: string
|
|
2382
2384
|
format: uuid
|
|
@@ -2459,6 +2461,96 @@ components:
|
|
|
2459
2461
|
properties:
|
|
2460
2462
|
reason:
|
|
2461
2463
|
type: string
|
|
2464
|
+
DeploymentRepootedMetric:
|
|
2465
|
+
type: object
|
|
2466
|
+
required:
|
|
2467
|
+
- value
|
|
2468
|
+
- unit
|
|
2469
|
+
- short_description
|
|
2470
|
+
properties:
|
|
2471
|
+
value:
|
|
2472
|
+
type: string
|
|
2473
|
+
unit:
|
|
2474
|
+
type: string
|
|
2475
|
+
short_description:
|
|
2476
|
+
type: string
|
|
2477
|
+
color:
|
|
2478
|
+
allOf:
|
|
2479
|
+
- $ref: '#/components/schemas/DeploymentReportedStatusColor'
|
|
2480
|
+
nullable: true
|
|
2481
|
+
DeploymentReportedNotice:
|
|
2482
|
+
type: object
|
|
2483
|
+
required:
|
|
2484
|
+
- level
|
|
2485
|
+
- text
|
|
2486
|
+
properties:
|
|
2487
|
+
level:
|
|
2488
|
+
$ref: '#/components/schemas/DeploymentReportedNoticeLevel'
|
|
2489
|
+
text:
|
|
2490
|
+
type: string
|
|
2491
|
+
DeploymentReportedNoticeLevel:
|
|
2492
|
+
type: string
|
|
2493
|
+
enum:
|
|
2494
|
+
- Info
|
|
2495
|
+
- Warning
|
|
2496
|
+
- Danger
|
|
2497
|
+
DeploymentReportedStatus:
|
|
2498
|
+
type: object
|
|
2499
|
+
required:
|
|
2500
|
+
- timestamp
|
|
2501
|
+
- get_successful
|
|
2502
|
+
properties:
|
|
2503
|
+
timestamp:
|
|
2504
|
+
type: string
|
|
2505
|
+
format: date-time
|
|
2506
|
+
get_successful:
|
|
2507
|
+
type: boolean
|
|
2508
|
+
content:
|
|
2509
|
+
allOf:
|
|
2510
|
+
- $ref: '#/components/schemas/DeploymentReportedStatusContent'
|
|
2511
|
+
nullable: true
|
|
2512
|
+
error:
|
|
2513
|
+
type: string
|
|
2514
|
+
nullable: true
|
|
2515
|
+
DeploymentReportedStatusColor:
|
|
2516
|
+
type: string
|
|
2517
|
+
enum:
|
|
2518
|
+
- primary
|
|
2519
|
+
- success
|
|
2520
|
+
- danger
|
|
2521
|
+
- warning
|
|
2522
|
+
- secondary
|
|
2523
|
+
DeploymentReportedStatusContent:
|
|
2524
|
+
type: object
|
|
2525
|
+
required:
|
|
2526
|
+
- status
|
|
2527
|
+
- notices
|
|
2528
|
+
properties:
|
|
2529
|
+
status:
|
|
2530
|
+
$ref: '#/components/schemas/DeploymentReportedStatusSummary'
|
|
2531
|
+
primary_metric:
|
|
2532
|
+
allOf:
|
|
2533
|
+
- $ref: '#/components/schemas/DeploymentRepootedMetric'
|
|
2534
|
+
nullable: true
|
|
2535
|
+
metrics:
|
|
2536
|
+
type: array
|
|
2537
|
+
items:
|
|
2538
|
+
$ref: '#/components/schemas/DeploymentRepootedMetric'
|
|
2539
|
+
nullable: true
|
|
2540
|
+
notices:
|
|
2541
|
+
type: array
|
|
2542
|
+
items:
|
|
2543
|
+
$ref: '#/components/schemas/DeploymentReportedNotice'
|
|
2544
|
+
DeploymentReportedStatusSummary:
|
|
2545
|
+
type: object
|
|
2546
|
+
required:
|
|
2547
|
+
- name
|
|
2548
|
+
- color
|
|
2549
|
+
properties:
|
|
2550
|
+
name:
|
|
2551
|
+
type: string
|
|
2552
|
+
color:
|
|
2553
|
+
$ref: '#/components/schemas/DeploymentReportedStatusColor'
|
|
2462
2554
|
DeploymentResource:
|
|
2463
2555
|
type: object
|
|
2464
2556
|
required:
|
package/package.json
CHANGED
package/version-override.txt
DELETED