diff --git a/dynamodb/dynamodb-client.w b/dynamodb/dynamodb-client.w index 6a97e6bb..d2147bea 100644 --- a/dynamodb/dynamodb-client.w +++ b/dynamodb/dynamodb-client.w @@ -1,6 +1,6 @@ bring "./dynamodb-types.w" as dynamodb_types; -interface DocumentClient { +inflight interface DocumentClient { inflight batchGet(input: Json): Json; inflight batchWrite(input: Json): Json; inflight delete(input: Json): Json; diff --git a/dynamodb/dynamodb-types.w b/dynamodb/dynamodb-types.w index 85679b3b..2adefa40 100644 --- a/dynamodb/dynamodb-types.w +++ b/dynamodb/dynamodb-types.w @@ -197,7 +197,7 @@ pub struct Connection { clientConfig: ClientConfig?; } -pub interface IClient { +pub inflight interface IClient { inflight delete(options: DeleteOptions): DeleteOutput; inflight get(options: GetOptions): GetOutput; inflight put(options: PutOptions): PutOutput; diff --git a/dynamodb/dynamodb.sim.w b/dynamodb/dynamodb.sim.w index db2c0623..2c9bb909 100644 --- a/dynamodb/dynamodb.sim.w +++ b/dynamodb/dynamodb.sim.w @@ -4,7 +4,7 @@ bring cloud; bring "./dynamodb-types.w" as dynamodb_types; bring "./dynamodb-client.w" as dynamodb_client; -interface Client { +inflight interface Client { inflight createTable(input: Json): Json; inflight deleteTable(input: Json): Json; inflight updateTimeToLive(input: Json): Json; diff --git a/dynamodb/package-lock.json b/dynamodb/package-lock.json index b61852ec..0d565100 100644 --- a/dynamodb/package-lock.json +++ b/dynamodb/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/dynamodb", - "version": "0.1.5", + "version": "0.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/dynamodb", - "version": "0.1.5", + "version": "0.1.6", "license": "MIT", "peerDependencies": { "@aws-sdk/client-dynamodb": "^3.461.0", diff --git a/dynamodb/package.json b/dynamodb/package.json index b335c311..23463b2d 100644 --- a/dynamodb/package.json +++ b/dynamodb/package.json @@ -1,6 +1,6 @@ { "name": "@winglibs/dynamodb", - "version": "0.1.5", + "version": "0.1.6", "description": "DynamoDB library for Wing", "author": { "name": "Cristian Pallarés", diff --git a/github/octokit/types.w b/github/octokit/types.w index 8240974c..a0b26386 100644 --- a/github/octokit/types.w +++ b/github/octokit/types.w @@ -290,7 +290,7 @@ struct ListForOrgProps { org: str; } -interface OctoKitRepos { +inflight interface OctoKitRepos { inflight getContent(options: GetContentProps): GetContentResponse; inflight getCommit(options: GetCommitProps): GetCommitResponse; inflight compareCommits(options: CompareCommitsProps): CompareCommitsResponse; @@ -308,4 +308,4 @@ pub struct OctoKit { git: OctoKitGit; issues: OctoKitIssues; repos: OctoKitRepos; -} \ No newline at end of file +} diff --git a/github/package-lock.json b/github/package-lock.json index 6cb15347..6d0cee3f 100644 --- a/github/package-lock.json +++ b/github/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/github", - "version": "0.0.8", + "version": "0.0.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/github", - "version": "0.0.8", + "version": "0.0.9", "license": "MIT", "peerDependencies": { "@probot/adapter-aws-lambda-serverless": "^3.0.4", diff --git a/github/package.json b/github/package.json index 7934a484..d297e45d 100644 --- a/github/package.json +++ b/github/package.json @@ -1,7 +1,7 @@ { "name": "@winglibs/github", "description": "A Wing library for GitHub Probot", - "version": "0.0.8", + "version": "0.0.9", "author": { "name": "Elad Cohen", "email": "eladc@wing.cloud" diff --git a/github/probot/adapter.w b/github/probot/adapter.w index c1d3e207..9e89acd8 100644 --- a/github/probot/adapter.w +++ b/github/probot/adapter.w @@ -1,7 +1,7 @@ bring "../octokit/types.w" as octokit; bring "./types.w" as probot; -pub interface IProbotAppCredentialsSupplier { +pub inflight interface IProbotAppCredentialsSupplier { inflight getId(): str; inflight getWebhookSecret(): str; inflight getPrivateKey(): str; @@ -31,7 +31,7 @@ pub class ProbotAdapter { inflight new() { this.instance = ProbotAdapter.createProbotAdapter( appId: this.credentialsSupplier.getId(), - privateKey: this.credentialsSupplier.getPrivateKey(), + privateKey: this.credentialsSupplier.getPrivateKey(), webhookSecret: this.credentialsSupplier.getWebhookSecret() ); } diff --git a/github/probot/types.w b/github/probot/types.w index ea588f1b..ab2fe3d7 100644 --- a/github/probot/types.w +++ b/github/probot/types.w @@ -71,12 +71,12 @@ pub struct VerifyAndReceieveProps { payload: str; } -pub interface IProbotWebhooks { +pub inflight interface IProbotWebhooks { inflight on(name: str, handler: inflight (): void): void; inflight verifyAndReceive(props: VerifyAndReceieveProps): void; } -pub interface IProbotAuth { +pub inflight interface IProbotAuth { inflight call(instance: ProbotInstance, installationId: num): octokit.OctoKit; } diff --git a/github/simutils/simutils.w b/github/simutils/simutils.w index 243cecdc..a8677749 100644 --- a/github/simutils/simutils.w +++ b/github/simutils/simutils.w @@ -2,7 +2,7 @@ bring cloud; bring util; bring sim; -pub interface Process { +pub inflight interface Process { inflight kill(): void; } @@ -50,4 +50,4 @@ pub class Port { }); } extern "./simutils.js" static inflight findPort(): num; -} \ No newline at end of file +} diff --git a/jwt/lib.w b/jwt/lib.w index c6e75cbf..55f38e93 100644 --- a/jwt/lib.w +++ b/jwt/lib.w @@ -48,15 +48,15 @@ struct IJwksClientOptions { jwksUri: str; } -interface IJwksSigningKey { +inflight interface IJwksSigningKey { inflight getPublicKey(): str; } -interface IJwksClient { +inflight interface IJwksClient { inflight getSigningKey(kid: str?): IJwksSigningKey; } -interface IJwt { +inflight interface IJwt { inflight jwksClient(options: IJwksClientOptions): IJwksClient; inflight sign(data: Json, secret: str, options: Json?): str; inflight verify(token: str, secret: inflight (JwtHeader, inflight (str, str): void): void, options: VerifyJwtOptions?): Json; @@ -105,7 +105,7 @@ pub class Util { throw "Either secret or jwksUri must be provided"; } } - + pub inflight static decode(token: str, options: DecodeOptions?): Json { return JwtUtil._jwt().decode(token, options); } diff --git a/jwt/package-lock.json b/jwt/package-lock.json index b0caa59b..490d1c68 100644 --- a/jwt/package-lock.json +++ b/jwt/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/jwt", - "version": "0.0.3", + "version": "0.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/jwt", - "version": "0.0.3", + "version": "0.0.4", "license": "MIT", "peerDependencies": { "jsonwebtoken": "^9.0.2", diff --git a/jwt/package.json b/jwt/package.json index 2d1e43a9..ae52de18 100644 --- a/jwt/package.json +++ b/jwt/package.json @@ -1,7 +1,7 @@ { "name": "@winglibs/jwt", "description": "Wing library for JWT authentication", - "version": "0.0.3", + "version": "0.0.4", "repository": { "type": "git", "url": "https://github.com/winglang/winglibs.git", diff --git a/ngrok/ngrok.w b/ngrok/ngrok.w index 245745ed..18a64e4d 100644 --- a/ngrok/ngrok.w +++ b/ngrok/ngrok.w @@ -3,12 +3,12 @@ bring util; bring fs; bring sim; -interface ChildProcess { +inflight interface ChildProcess { inflight kill(): void; inflight url(): str; } -pub interface OnConnectHandler { +pub inflight interface OnConnectHandler { inflight handle(url: str): void; } @@ -49,17 +49,17 @@ pub class Tunnel { } catch e { log("error: {e}"); - // ugly: without this an exception will cause dependents to + // ugly: without this an exception will cause dependents to // never be initialized and the app will fail to start this.state.set("url", ""); - } + } }); - + // no need to show the ugly details nodeof(s).hidden = true; nodeof(this.state).hidden = true; } else { - // ugly: without this an exception will cause dependents to + // ugly: without this an exception will cause dependents to // never be initialized and the app will fail to start new cloud.Service(inflight () => { this.state.set("url", ""); diff --git a/ngrok/package-lock.json b/ngrok/package-lock.json index 57b0204e..c5295d52 100644 --- a/ngrok/package-lock.json +++ b/ngrok/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/ngrok", - "version": "0.0.5", + "version": "0.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/ngrok", - "version": "0.0.5", + "version": "0.0.6", "license": "MIT", "peerDependencies": { "@ngrok/ngrok": "^0.9.1" diff --git a/ngrok/package.json b/ngrok/package.json index 0090b150..37a77118 100644 --- a/ngrok/package.json +++ b/ngrok/package.json @@ -1,6 +1,6 @@ { "name": "@winglibs/ngrok", - "version": "0.0.5", + "version": "0.0.6", "description": "ngrok library for Wing", "author": { "name": "Elad Ben-Israel", diff --git a/openai/openai.w b/openai/openai.w index b2ad590a..f7008f09 100644 --- a/openai/openai.w +++ b/openai/openai.w @@ -13,7 +13,7 @@ pub struct OpenAIProps { orgSecret: cloud.Secret?; } -interface IClient { +inflight interface IClient { inflight createCompletion(params: Json): Json; } @@ -40,7 +40,7 @@ pub class OpenAI { mock: bool; inflight openai: IClient; - + new(props: OpenAIProps?) { this.apiKey = props?.apiKeySecret; this.org = props?.orgSecret; diff --git a/openai/package-lock.json b/openai/package-lock.json index ce11aaeb..2cec3e84 100644 --- a/openai/package-lock.json +++ b/openai/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/openai", - "version": "0.0.3", + "version": "0.0.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/openai", - "version": "0.0.3", + "version": "0.0.4", "license": "MIT", "peerDependencies": { "openai": "^4.28.4" diff --git a/openai/package.json b/openai/package.json index 7b81674c..1294544e 100644 --- a/openai/package.json +++ b/openai/package.json @@ -1,7 +1,7 @@ { "name": "@winglibs/openai", "description": "OpenAI library for Wing", - "version": "0.0.3", + "version": "0.0.4", "repository": { "type": "git", "url": "https://github.com/winglang/winglibs.git", diff --git a/redis/api.w b/redis/api.w index ff50772b..50e1c603 100644 --- a/redis/api.w +++ b/redis/api.w @@ -1,4 +1,4 @@ -pub interface IRedis extends std.IResource { +pub inflight interface IRedis { inflight url(): str; inflight set(key:str, value: str): void; inflight get(key: str): str?; @@ -9,7 +9,7 @@ pub interface IRedis extends std.IResource { inflight del(key: str): void; } -pub interface IRedisClient extends IRedis { +pub inflight interface IRedisClient extends IRedis { inflight connect(): void; inflight disconnect(): void; } diff --git a/redis/package-lock.json b/redis/package-lock.json index cc2a07e2..41ddb57d 100644 --- a/redis/package-lock.json +++ b/redis/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/redis", - "version": "0.0.7", + "version": "0.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/redis", - "version": "0.0.7", + "version": "0.0.8", "license": "MIT", "peerDependencies": { "@winglibs/containers": "^0.0.27", @@ -496,6 +496,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "optional": true, "peer": true }, "node_modules/base64-js": { @@ -542,6 +543,7 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "optional": true, "peer": true, "dependencies": { "balanced-match": "^1.0.0", @@ -1542,6 +1544,7 @@ "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "optional": true, "peer": true }, "node_modules/constructs": { @@ -1785,6 +1788,7 @@ "url": "https://github.com/sponsors/RubenVerborgh" } ], + "optional": true, "peer": true, "engines": { "node": ">=4.0" @@ -2291,6 +2295,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "optional": true, "peer": true, "dependencies": { "brace-expansion": "^1.1.7" @@ -2692,6 +2697,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "optional": true, "peer": true, "bin": { "semver": "bin/semver.js" diff --git a/redis/package.json b/redis/package.json index 77355c72..195e6e8a 100644 --- a/redis/package.json +++ b/redis/package.json @@ -1,6 +1,6 @@ { "name": "@winglibs/redis", - "version": "0.0.7", + "version": "0.0.8", "description": "Redis resource for Wing", "repository": { "type": "git", diff --git a/redis/redis.extern.d.ts b/redis/redis.extern.d.ts index ceb4bdb8..a85cf519 100644 --- a/redis/redis.extern.d.ts +++ b/redis/redis.extern.d.ts @@ -1,31 +1,7 @@ export default interface extern { newRedisClient: (url: string, redisPassword: string) => Promise, } -/** Trait marker for classes that can be depended upon. -The presence of this interface indicates that an object has -an `IDependable` implementation. - -This interface can be used to take an (ordering) dependency on a set of -constructs. An ordering dependency implies that the resources represented by -those constructs are deployed before the resources depending ON them are -deployed. */ -export interface IDependable$Inflight { -} -/** Represents a construct. */ -export interface IConstruct$Inflight extends IDependable$Inflight { -} -/** Data that can be lifted into inflight. */ -export interface ILiftable$Inflight { -} -/** A liftable object that needs to be registered on the host as part of the lifting process. -This is generally used so the host can set up permissions -to access the lifted object inflight. */ -export interface IHostedLiftable$Inflight extends ILiftable$Inflight { -} -/** Abstract interface for `Resource`. */ -export interface IResource$Inflight extends IConstruct$Inflight, IHostedLiftable$Inflight { -} -export interface IRedis$Inflight extends IResource$Inflight { +export interface IRedis$Inflight { readonly del: (key: string) => Promise; readonly get: (key: string) => Promise<(string) | undefined>; readonly hGet: (key: string, field: string) => Promise<(string) | undefined>; diff --git a/tsoa/package-lock.json b/tsoa/package-lock.json index 20ca2b91..69f034f3 100644 --- a/tsoa/package-lock.json +++ b/tsoa/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/tsoa", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/tsoa", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "peerDependencies": { "@cdktf/provider-aws": "^19.13.0", diff --git a/tsoa/package.json b/tsoa/package.json index 45d0245a..a6108ffc 100644 --- a/tsoa/package.json +++ b/tsoa/package.json @@ -1,7 +1,7 @@ { "name": "@winglibs/tsoa", "description": "TSOA library for Wing", - "version": "0.1.0", + "version": "0.1.1", "author": { "email": "eyalk@wing.cloud", "name": "Eyal Keren" diff --git a/tsoa/sim.w b/tsoa/sim.w index dd84a096..971046ee 100644 --- a/tsoa/sim.w +++ b/tsoa/sim.w @@ -4,7 +4,7 @@ bring ui; bring util; bring "./types.w" as types; -interface StartResponse { +inflight interface StartResponse { inflight port(): num; inflight close(): void; } diff --git a/vite/package-lock.json b/vite/package-lock.json index 72aea97e..91e01569 100644 --- a/vite/package-lock.json +++ b/vite/package-lock.json @@ -1,12 +1,12 @@ { "name": "@winglibs/vite", - "version": "0.1.5", + "version": "0.1.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@winglibs/vite", - "version": "0.1.5", + "version": "0.1.6", "license": "MIT", "peerDependencies": { "@cdktf/provider-aws": "^19.12.0", diff --git a/vite/package.json b/vite/package.json index 05ca8300..5b43f81a 100644 --- a/vite/package.json +++ b/vite/package.json @@ -1,6 +1,6 @@ { "name": "@winglibs/vite", - "version": "0.1.5", + "version": "0.1.6", "description": "Wing resource that allows deploying a Vite application to the cloud", "repository": { "type": "git", diff --git a/vite/vite.sim.w b/vite/vite.sim.w index 914e6a1b..471998a5 100644 --- a/vite/vite.sim.w +++ b/vite/vite.sim.w @@ -4,7 +4,7 @@ bring util; bring fs; bring "./vite-types.w" as vite_types; -interface DevOutput { +inflight interface DevOutput { inflight url(): str; inflight kill(): void; }