@postman-cse/onboarding-repo-sync 2.1.14 → 2.1.16

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/dist/action.cjs CHANGED
@@ -136985,13 +136985,36 @@ var PostmanGatewayAssetsClient = class {
136985
136985
  name: String(entry.name ?? entry.message ?? "").trim()
136986
136986
  })).filter((entry) => entry.id || entry.name);
136987
136987
  }
136988
+ /**
136989
+ * Delete a collection (GC path). DELETE is idempotent: transient 408/429/5xx
136990
+ * (including Bifrost ESOCKETTIMEDOUT envelopes) are retried with the same
136991
+ * bounded budget as other idempotent writes; 404 is success (already gone).
136992
+ * Ordinary 4xx are not retried.
136993
+ */
136988
136994
  async deleteCollection(collectionUid) {
136989
136995
  const bareId = String(collectionUid).split("-").slice(-5).join("-") || collectionUid;
136990
- await this.gateway.requestJson({
136991
- service: "collection",
136992
- method: "delete",
136993
- path: `/v3/collections/${bareId}`
136994
- });
136996
+ try {
136997
+ await retry(
136998
+ () => this.gateway.requestJson({
136999
+ service: "collection",
137000
+ method: "delete",
137001
+ path: `/v3/collections/${bareId}`
137002
+ }),
137003
+ {
137004
+ maxAttempts: 5,
137005
+ delayMs: 2e3,
137006
+ backoffMultiplier: 2,
137007
+ maxDelayMs: 15e3,
137008
+ sleep: this.sleep,
137009
+ shouldRetry: (e) => this.isRetryableIdempotentWriteOutcome(e)
137010
+ }
137011
+ );
137012
+ } catch (error2) {
137013
+ if (error2 instanceof HttpError && error2.status === 404) {
137014
+ return;
137015
+ }
137016
+ throw error2;
137017
+ }
136995
137018
  }
136996
137019
  async listSpecifications(workspaceId) {
136997
137020
  const response = await this.gateway.requestJson({
package/dist/cli.cjs CHANGED
@@ -135090,13 +135090,36 @@ var PostmanGatewayAssetsClient = class {
135090
135090
  name: String(entry.name ?? entry.message ?? "").trim()
135091
135091
  })).filter((entry) => entry.id || entry.name);
135092
135092
  }
135093
+ /**
135094
+ * Delete a collection (GC path). DELETE is idempotent: transient 408/429/5xx
135095
+ * (including Bifrost ESOCKETTIMEDOUT envelopes) are retried with the same
135096
+ * bounded budget as other idempotent writes; 404 is success (already gone).
135097
+ * Ordinary 4xx are not retried.
135098
+ */
135093
135099
  async deleteCollection(collectionUid) {
135094
135100
  const bareId = String(collectionUid).split("-").slice(-5).join("-") || collectionUid;
135095
- await this.gateway.requestJson({
135096
- service: "collection",
135097
- method: "delete",
135098
- path: `/v3/collections/${bareId}`
135099
- });
135101
+ try {
135102
+ await retry(
135103
+ () => this.gateway.requestJson({
135104
+ service: "collection",
135105
+ method: "delete",
135106
+ path: `/v3/collections/${bareId}`
135107
+ }),
135108
+ {
135109
+ maxAttempts: 5,
135110
+ delayMs: 2e3,
135111
+ backoffMultiplier: 2,
135112
+ maxDelayMs: 15e3,
135113
+ sleep: this.sleep,
135114
+ shouldRetry: (e) => this.isRetryableIdempotentWriteOutcome(e)
135115
+ }
135116
+ );
135117
+ } catch (error) {
135118
+ if (error instanceof HttpError && error.status === 404) {
135119
+ return;
135120
+ }
135121
+ throw error;
135122
+ }
135100
135123
  }
135101
135124
  async listSpecifications(workspaceId) {
135102
135125
  const response = await this.gateway.requestJson({
package/dist/index.cjs CHANGED
@@ -137007,13 +137007,36 @@ var PostmanGatewayAssetsClient = class {
137007
137007
  name: String(entry.name ?? entry.message ?? "").trim()
137008
137008
  })).filter((entry) => entry.id || entry.name);
137009
137009
  }
137010
+ /**
137011
+ * Delete a collection (GC path). DELETE is idempotent: transient 408/429/5xx
137012
+ * (including Bifrost ESOCKETTIMEDOUT envelopes) are retried with the same
137013
+ * bounded budget as other idempotent writes; 404 is success (already gone).
137014
+ * Ordinary 4xx are not retried.
137015
+ */
137010
137016
  async deleteCollection(collectionUid) {
137011
137017
  const bareId = String(collectionUid).split("-").slice(-5).join("-") || collectionUid;
137012
- await this.gateway.requestJson({
137013
- service: "collection",
137014
- method: "delete",
137015
- path: `/v3/collections/${bareId}`
137016
- });
137018
+ try {
137019
+ await retry(
137020
+ () => this.gateway.requestJson({
137021
+ service: "collection",
137022
+ method: "delete",
137023
+ path: `/v3/collections/${bareId}`
137024
+ }),
137025
+ {
137026
+ maxAttempts: 5,
137027
+ delayMs: 2e3,
137028
+ backoffMultiplier: 2,
137029
+ maxDelayMs: 15e3,
137030
+ sleep: this.sleep,
137031
+ shouldRetry: (e) => this.isRetryableIdempotentWriteOutcome(e)
137032
+ }
137033
+ );
137034
+ } catch (error2) {
137035
+ if (error2 instanceof HttpError && error2.status === 404) {
137036
+ return;
137037
+ }
137038
+ throw error2;
137039
+ }
137017
137040
  }
137018
137041
  async listSpecifications(workspaceId) {
137019
137042
  const response = await this.gateway.requestJson({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman-cse/onboarding-repo-sync",
3
- "version": "2.1.14",
3
+ "version": "2.1.16",
4
4
  "description": "Postman repo sync GitHub Action.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",