@dagger.io/dagger 0.19.4 → 0.19.5
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/src/api/client.gen.d.ts +74 -6
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +96 -6
- package/dist/src/module/entrypoint/register.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.js +17 -7
- package/dist/src/module/introspector/dagger_module/argument.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/argument.js +9 -2
- package/dist/src/module/introspector/dagger_module/enum.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enum.js +5 -1
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts +1 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enumClass.js +5 -1
- package/dist/src/module/introspector/dagger_module/function.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/function.js +5 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.js +5 -1
- package/dist/src/module/introspector/dagger_module/object.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/object.js +5 -1
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/property.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/property.js +5 -1
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/typeObject.js +5 -1
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +5 -1
- package/dist/src/module/introspector/typescript_module/ast.d.ts +5 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -1
- package/dist/src/module/introspector/typescript_module/ast.js +24 -1
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +5 -5
|
@@ -2947,15 +2947,17 @@ export class EnumTypeDef extends BaseClient {
|
|
|
2947
2947
|
*/
|
|
2948
2948
|
export class EnumValueTypeDef extends BaseClient {
|
|
2949
2949
|
_id = undefined;
|
|
2950
|
+
_deprecated = undefined;
|
|
2950
2951
|
_description = undefined;
|
|
2951
2952
|
_name = undefined;
|
|
2952
2953
|
_value = undefined;
|
|
2953
2954
|
/**
|
|
2954
2955
|
* Constructor is used for internal usage only, do not create object from it.
|
|
2955
2956
|
*/
|
|
2956
|
-
constructor(ctx, _id, _description, _name, _value) {
|
|
2957
|
+
constructor(ctx, _id, _deprecated, _description, _name, _value) {
|
|
2957
2958
|
super(ctx);
|
|
2958
2959
|
this._id = _id;
|
|
2960
|
+
this._deprecated = _deprecated;
|
|
2959
2961
|
this._description = _description;
|
|
2960
2962
|
this._name = _name;
|
|
2961
2963
|
this._value = _value;
|
|
@@ -2971,6 +2973,17 @@ export class EnumValueTypeDef extends BaseClient {
|
|
|
2971
2973
|
const response = await ctx.execute();
|
|
2972
2974
|
return response;
|
|
2973
2975
|
};
|
|
2976
|
+
/**
|
|
2977
|
+
* The reason this enum member is deprecated, if any.
|
|
2978
|
+
*/
|
|
2979
|
+
deprecated = async () => {
|
|
2980
|
+
if (this._deprecated) {
|
|
2981
|
+
return this._deprecated;
|
|
2982
|
+
}
|
|
2983
|
+
const ctx = this._ctx.select("deprecated");
|
|
2984
|
+
const response = await ctx.execute();
|
|
2985
|
+
return response;
|
|
2986
|
+
};
|
|
2974
2987
|
/**
|
|
2975
2988
|
* A doc string for the enum member, if any.
|
|
2976
2989
|
*/
|
|
@@ -3861,14 +3874,16 @@ export class ErrorValue extends BaseClient {
|
|
|
3861
3874
|
*/
|
|
3862
3875
|
export class FieldTypeDef extends BaseClient {
|
|
3863
3876
|
_id = undefined;
|
|
3877
|
+
_deprecated = undefined;
|
|
3864
3878
|
_description = undefined;
|
|
3865
3879
|
_name = undefined;
|
|
3866
3880
|
/**
|
|
3867
3881
|
* Constructor is used for internal usage only, do not create object from it.
|
|
3868
3882
|
*/
|
|
3869
|
-
constructor(ctx, _id, _description, _name) {
|
|
3883
|
+
constructor(ctx, _id, _deprecated, _description, _name) {
|
|
3870
3884
|
super(ctx);
|
|
3871
3885
|
this._id = _id;
|
|
3886
|
+
this._deprecated = _deprecated;
|
|
3872
3887
|
this._description = _description;
|
|
3873
3888
|
this._name = _name;
|
|
3874
3889
|
}
|
|
@@ -3883,6 +3898,17 @@ export class FieldTypeDef extends BaseClient {
|
|
|
3883
3898
|
const response = await ctx.execute();
|
|
3884
3899
|
return response;
|
|
3885
3900
|
};
|
|
3901
|
+
/**
|
|
3902
|
+
* The reason this enum member is deprecated, if any.
|
|
3903
|
+
*/
|
|
3904
|
+
deprecated = async () => {
|
|
3905
|
+
if (this._deprecated) {
|
|
3906
|
+
return this._deprecated;
|
|
3907
|
+
}
|
|
3908
|
+
const ctx = this._ctx.select("deprecated");
|
|
3909
|
+
const response = await ctx.execute();
|
|
3910
|
+
return response;
|
|
3911
|
+
};
|
|
3886
3912
|
/**
|
|
3887
3913
|
* A doc string for the field, if any.
|
|
3888
3914
|
*/
|
|
@@ -4119,14 +4145,16 @@ export class File extends BaseClient {
|
|
|
4119
4145
|
*/
|
|
4120
4146
|
export class Function_ extends BaseClient {
|
|
4121
4147
|
_id = undefined;
|
|
4148
|
+
_deprecated = undefined;
|
|
4122
4149
|
_description = undefined;
|
|
4123
4150
|
_name = undefined;
|
|
4124
4151
|
/**
|
|
4125
4152
|
* Constructor is used for internal usage only, do not create object from it.
|
|
4126
4153
|
*/
|
|
4127
|
-
constructor(ctx, _id, _description, _name) {
|
|
4154
|
+
constructor(ctx, _id, _deprecated, _description, _name) {
|
|
4128
4155
|
super(ctx);
|
|
4129
4156
|
this._id = _id;
|
|
4157
|
+
this._deprecated = _deprecated;
|
|
4130
4158
|
this._description = _description;
|
|
4131
4159
|
this._name = _name;
|
|
4132
4160
|
}
|
|
@@ -4149,6 +4177,17 @@ export class Function_ extends BaseClient {
|
|
|
4149
4177
|
const response = await ctx.execute();
|
|
4150
4178
|
return response.map((r) => new Client(ctx.copy()).loadFunctionArgFromID(r.id));
|
|
4151
4179
|
};
|
|
4180
|
+
/**
|
|
4181
|
+
* The reason this function is deprecated, if any.
|
|
4182
|
+
*/
|
|
4183
|
+
deprecated = async () => {
|
|
4184
|
+
if (this._deprecated) {
|
|
4185
|
+
return this._deprecated;
|
|
4186
|
+
}
|
|
4187
|
+
const ctx = this._ctx.select("deprecated");
|
|
4188
|
+
const response = await ctx.execute();
|
|
4189
|
+
return response;
|
|
4190
|
+
};
|
|
4152
4191
|
/**
|
|
4153
4192
|
* A doc string for the function, if any.
|
|
4154
4193
|
*/
|
|
@@ -4194,6 +4233,7 @@ export class Function_ extends BaseClient {
|
|
|
4194
4233
|
* @param opts.defaultPath If the argument is a Directory or File type, default to load path from context directory, relative to root directory.
|
|
4195
4234
|
* @param opts.ignore Patterns to ignore when loading the contextual argument value.
|
|
4196
4235
|
* @param opts.sourceMap The source map for the argument definition.
|
|
4236
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
4197
4237
|
*/
|
|
4198
4238
|
withArg = (name, typeDef, opts) => {
|
|
4199
4239
|
const ctx = this._ctx.select("withArg", { name, typeDef, ...opts });
|
|
@@ -4215,6 +4255,14 @@ export class Function_ extends BaseClient {
|
|
|
4215
4255
|
});
|
|
4216
4256
|
return new Function_(ctx);
|
|
4217
4257
|
};
|
|
4258
|
+
/**
|
|
4259
|
+
* Returns the function with the provided deprecation reason.
|
|
4260
|
+
* @param opts.reason Reason or migration path describing the deprecation.
|
|
4261
|
+
*/
|
|
4262
|
+
withDeprecated = (opts) => {
|
|
4263
|
+
const ctx = this._ctx.select("withDeprecated", { ...opts });
|
|
4264
|
+
return new Function_(ctx);
|
|
4265
|
+
};
|
|
4218
4266
|
/**
|
|
4219
4267
|
* Returns the function with the given doc string.
|
|
4220
4268
|
* @param description The doc string to set.
|
|
@@ -4249,16 +4297,18 @@ export class FunctionArg extends BaseClient {
|
|
|
4249
4297
|
_id = undefined;
|
|
4250
4298
|
_defaultPath = undefined;
|
|
4251
4299
|
_defaultValue = undefined;
|
|
4300
|
+
_deprecated = undefined;
|
|
4252
4301
|
_description = undefined;
|
|
4253
4302
|
_name = undefined;
|
|
4254
4303
|
/**
|
|
4255
4304
|
* Constructor is used for internal usage only, do not create object from it.
|
|
4256
4305
|
*/
|
|
4257
|
-
constructor(ctx, _id, _defaultPath, _defaultValue, _description, _name) {
|
|
4306
|
+
constructor(ctx, _id, _defaultPath, _defaultValue, _deprecated, _description, _name) {
|
|
4258
4307
|
super(ctx);
|
|
4259
4308
|
this._id = _id;
|
|
4260
4309
|
this._defaultPath = _defaultPath;
|
|
4261
4310
|
this._defaultValue = _defaultValue;
|
|
4311
|
+
this._deprecated = _deprecated;
|
|
4262
4312
|
this._description = _description;
|
|
4263
4313
|
this._name = _name;
|
|
4264
4314
|
}
|
|
@@ -4295,6 +4345,17 @@ export class FunctionArg extends BaseClient {
|
|
|
4295
4345
|
const response = await ctx.execute();
|
|
4296
4346
|
return response;
|
|
4297
4347
|
};
|
|
4348
|
+
/**
|
|
4349
|
+
* The reason this function is deprecated, if any.
|
|
4350
|
+
*/
|
|
4351
|
+
deprecated = async () => {
|
|
4352
|
+
if (this._deprecated) {
|
|
4353
|
+
return this._deprecated;
|
|
4354
|
+
}
|
|
4355
|
+
const ctx = this._ctx.select("deprecated");
|
|
4356
|
+
const response = await ctx.execute();
|
|
4357
|
+
return response;
|
|
4358
|
+
};
|
|
4298
4359
|
/**
|
|
4299
4360
|
* A doc string for the argument, if any.
|
|
4300
4361
|
*/
|
|
@@ -6278,15 +6339,17 @@ export class ModuleSource extends BaseClient {
|
|
|
6278
6339
|
*/
|
|
6279
6340
|
export class ObjectTypeDef extends BaseClient {
|
|
6280
6341
|
_id = undefined;
|
|
6342
|
+
_deprecated = undefined;
|
|
6281
6343
|
_description = undefined;
|
|
6282
6344
|
_name = undefined;
|
|
6283
6345
|
_sourceModuleName = undefined;
|
|
6284
6346
|
/**
|
|
6285
6347
|
* Constructor is used for internal usage only, do not create object from it.
|
|
6286
6348
|
*/
|
|
6287
|
-
constructor(ctx, _id, _description, _name, _sourceModuleName) {
|
|
6349
|
+
constructor(ctx, _id, _deprecated, _description, _name, _sourceModuleName) {
|
|
6288
6350
|
super(ctx);
|
|
6289
6351
|
this._id = _id;
|
|
6352
|
+
this._deprecated = _deprecated;
|
|
6290
6353
|
this._description = _description;
|
|
6291
6354
|
this._name = _name;
|
|
6292
6355
|
this._sourceModuleName = _sourceModuleName;
|
|
@@ -6309,6 +6372,17 @@ export class ObjectTypeDef extends BaseClient {
|
|
|
6309
6372
|
const ctx = this._ctx.select("constructor");
|
|
6310
6373
|
return new Function_(ctx);
|
|
6311
6374
|
};
|
|
6375
|
+
/**
|
|
6376
|
+
* The reason this enum member is deprecated, if any.
|
|
6377
|
+
*/
|
|
6378
|
+
deprecated = async () => {
|
|
6379
|
+
if (this._deprecated) {
|
|
6380
|
+
return this._deprecated;
|
|
6381
|
+
}
|
|
6382
|
+
const ctx = this._ctx.select("deprecated");
|
|
6383
|
+
const response = await ctx.execute();
|
|
6384
|
+
return response;
|
|
6385
|
+
};
|
|
6312
6386
|
/**
|
|
6313
6387
|
* The doc string for the object, if any.
|
|
6314
6388
|
*/
|
|
@@ -7100,13 +7174,15 @@ export class Client extends BaseClient {
|
|
|
7100
7174
|
*/
|
|
7101
7175
|
export class SDKConfig extends BaseClient {
|
|
7102
7176
|
_id = undefined;
|
|
7177
|
+
_debug = undefined;
|
|
7103
7178
|
_source = undefined;
|
|
7104
7179
|
/**
|
|
7105
7180
|
* Constructor is used for internal usage only, do not create object from it.
|
|
7106
7181
|
*/
|
|
7107
|
-
constructor(ctx, _id, _source) {
|
|
7182
|
+
constructor(ctx, _id, _debug, _source) {
|
|
7108
7183
|
super(ctx);
|
|
7109
7184
|
this._id = _id;
|
|
7185
|
+
this._debug = _debug;
|
|
7110
7186
|
this._source = _source;
|
|
7111
7187
|
}
|
|
7112
7188
|
/**
|
|
@@ -7120,6 +7196,17 @@ export class SDKConfig extends BaseClient {
|
|
|
7120
7196
|
const response = await ctx.execute();
|
|
7121
7197
|
return response;
|
|
7122
7198
|
};
|
|
7199
|
+
/**
|
|
7200
|
+
* Whether to start the SDK runtime in debug mode with an interactive terminal.
|
|
7201
|
+
*/
|
|
7202
|
+
debug = async () => {
|
|
7203
|
+
if (this._debug) {
|
|
7204
|
+
return this._debug;
|
|
7205
|
+
}
|
|
7206
|
+
const ctx = this._ctx.select("debug");
|
|
7207
|
+
const response = await ctx.execute();
|
|
7208
|
+
return response;
|
|
7209
|
+
};
|
|
7123
7210
|
/**
|
|
7124
7211
|
* Source of the SDK. Either a name of a builtin SDK or a module source ref string pointing to the SDK's implementation.
|
|
7125
7212
|
*/
|
|
@@ -7799,6 +7886,7 @@ export class TypeDef extends BaseClient {
|
|
|
7799
7886
|
* @param opts.value The value of the member in the enum
|
|
7800
7887
|
* @param opts.description A doc string for the member, if any
|
|
7801
7888
|
* @param opts.sourceMap The source map for the enum member definition.
|
|
7889
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
7802
7890
|
*/
|
|
7803
7891
|
withEnumMember = (name, opts) => {
|
|
7804
7892
|
const ctx = this._ctx.select("withEnumMember", { name, ...opts });
|
|
@@ -7809,6 +7897,7 @@ export class TypeDef extends BaseClient {
|
|
|
7809
7897
|
* @param value The name of the value in the enum
|
|
7810
7898
|
* @param opts.description A doc string for the value, if any
|
|
7811
7899
|
* @param opts.sourceMap The source map for the enum value definition.
|
|
7900
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
7812
7901
|
* @deprecated Use withEnumMember instead
|
|
7813
7902
|
*/
|
|
7814
7903
|
withEnumValue = (value, opts) => {
|
|
@@ -7821,6 +7910,7 @@ export class TypeDef extends BaseClient {
|
|
|
7821
7910
|
* @param typeDef The type of the field
|
|
7822
7911
|
* @param opts.description A doc string for the field, if any
|
|
7823
7912
|
* @param opts.sourceMap The source map for the field definition.
|
|
7913
|
+
* @param opts.deprecated If deprecated, the reason or migration path.
|
|
7824
7914
|
*/
|
|
7825
7915
|
withField = (name, typeDef, opts) => {
|
|
7826
7916
|
const ctx = this._ctx.select("withField", { name, typeDef, ...opts });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/module/entrypoint/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,QAAQ,EACR,OAAO,
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/module/entrypoint/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,QAAQ,EACR,OAAO,EAQR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,eAAe,IAAI,SAAS,EAC5B,iBAAiB,IAAI,WAAW,EAChC,cAAc,IAAI,MAAM,EACxB,YAAY,EAEZ,cAAc,EACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAU5F,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAEjD;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAyF9B;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAInE;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAgC7D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,CAAC,GAAG,EAAE,SAAS,KAAK,SAAS;IAmDtD;;;;;;;OAOG;IACH,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS;CA4BjE"}
|
|
@@ -16,11 +16,13 @@ export class Register {
|
|
|
16
16
|
}
|
|
17
17
|
// For each class scanned, register its type, method and properties in the module.
|
|
18
18
|
Object.values(this.module.objects).forEach((object) => {
|
|
19
|
-
|
|
20
|
-
let typeDef = dag.typeDef().withObject(object.name, {
|
|
19
|
+
const objectOpts = {
|
|
21
20
|
description: object.description,
|
|
22
21
|
sourceMap: addSourceMap(object),
|
|
23
|
-
|
|
22
|
+
deprecated: object.deprecated,
|
|
23
|
+
};
|
|
24
|
+
// Register the class Typedef object in Dagger
|
|
25
|
+
let typeDef = dag.typeDef().withObject(object.name, objectOpts);
|
|
24
26
|
// Register all functions (methods) to this object
|
|
25
27
|
Object.values(object.methods).forEach((method) => {
|
|
26
28
|
typeDef = typeDef.withFunction(this.addFunction(method));
|
|
@@ -28,10 +30,12 @@ export class Register {
|
|
|
28
30
|
// Register all fields that belong to this object
|
|
29
31
|
Object.values(object.properties).forEach((field) => {
|
|
30
32
|
if (field.isExposed) {
|
|
31
|
-
|
|
33
|
+
const fieldOpts = {
|
|
32
34
|
description: field.description,
|
|
33
35
|
sourceMap: addSourceMap(field),
|
|
34
|
-
|
|
36
|
+
deprecated: field.deprecated,
|
|
37
|
+
};
|
|
38
|
+
typeDef = typeDef.withField(field.alias ?? field.name, addTypeDef(field.type), fieldOpts);
|
|
35
39
|
}
|
|
36
40
|
});
|
|
37
41
|
if (object._constructor) {
|
|
@@ -47,11 +51,13 @@ export class Register {
|
|
|
47
51
|
sourceMap: addSourceMap(enum_),
|
|
48
52
|
});
|
|
49
53
|
Object.values(enum_.values).forEach((value) => {
|
|
50
|
-
|
|
54
|
+
const memberOpts = {
|
|
51
55
|
value: value.value,
|
|
52
56
|
description: value.description,
|
|
53
57
|
sourceMap: addSourceMap(value),
|
|
54
|
-
|
|
58
|
+
deprecated: value.deprecated,
|
|
59
|
+
};
|
|
60
|
+
typeDef = typeDef.withEnumMember(value.name, memberOpts);
|
|
55
61
|
});
|
|
56
62
|
mod = mod.withEnum(typeDef);
|
|
57
63
|
});
|
|
@@ -99,6 +105,9 @@ export class Register {
|
|
|
99
105
|
fnDef = fnDef.withCachePolicy(FunctionCachePolicy.Default, opts);
|
|
100
106
|
}
|
|
101
107
|
}
|
|
108
|
+
if (fct.deprecated !== undefined) {
|
|
109
|
+
fnDef = fnDef.withDeprecated({ reason: fct.deprecated });
|
|
110
|
+
}
|
|
102
111
|
return fnDef;
|
|
103
112
|
}
|
|
104
113
|
/**
|
|
@@ -110,6 +119,7 @@ export class Register {
|
|
|
110
119
|
const opts = {
|
|
111
120
|
description: arg.description,
|
|
112
121
|
sourceMap: addSourceMap(arg),
|
|
122
|
+
deprecated: arg.deprecated,
|
|
113
123
|
};
|
|
114
124
|
let typeDef = addTypeDef(arg.type);
|
|
115
125
|
if (arg.isOptional) {
|
|
@@ -12,6 +12,7 @@ export declare class DaggerArgument extends Locatable {
|
|
|
12
12
|
private readonly ast;
|
|
13
13
|
name: string;
|
|
14
14
|
description: string;
|
|
15
|
+
deprecated?: string;
|
|
15
16
|
private _typeRef?;
|
|
16
17
|
type?: TypeDef<TypeDefKind>;
|
|
17
18
|
isVariadic: boolean;
|
|
@@ -36,6 +37,7 @@ export declare class DaggerArgument extends Locatable {
|
|
|
36
37
|
toJSON(): {
|
|
37
38
|
name: string;
|
|
38
39
|
description: string;
|
|
40
|
+
deprecated: string | undefined;
|
|
39
41
|
type: TypeDef<TypeDefKind> | undefined;
|
|
40
42
|
isVariadic: boolean;
|
|
41
43
|
isNullable: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argument.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/argument.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAA;AAEhE,qBAAa,cAAe,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"argument.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/argument.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAA;AAEhE,qBAAa,cAAe,SAAQ,SAAS;IAgBzC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAhBf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,QAAQ,CAAC,CAAQ;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC3B,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,YAAY,CAAC,EAAE,GAAG,CAAA;IAEzB,OAAO,CAAC,MAAM,CAAW;gBAGN,IAAI,EAAE,EAAE,CAAC,oBAAoB,EAC7B,GAAG,EAAE,GAAG;IAuC3B;;;;;OAKG;IACH,OAAO,CAAC,OAAO;IAWf,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,eAAe;IAShB,YAAY,IAAI,MAAM,GAAG,SAAS;IAWlC,mBAAmB,CAAC,UAAU,EAAE,UAAU;IAmBjD,MAAM;;;;;;;;;;;;CAcP"}
|
|
@@ -9,6 +9,7 @@ export class DaggerArgument extends Locatable {
|
|
|
9
9
|
ast;
|
|
10
10
|
name;
|
|
11
11
|
description;
|
|
12
|
+
deprecated;
|
|
12
13
|
_typeRef;
|
|
13
14
|
type;
|
|
14
15
|
isVariadic;
|
|
@@ -24,16 +25,21 @@ export class DaggerArgument extends Locatable {
|
|
|
24
25
|
this.ast = ast;
|
|
25
26
|
this.symbol = this.ast.getSymbolOrThrow(node.name);
|
|
26
27
|
this.name = this.node.name.getText();
|
|
27
|
-
|
|
28
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
29
|
+
this.description = description;
|
|
30
|
+
this.deprecated = deprecated;
|
|
28
31
|
this.defaultValue = this.getDefaultValue();
|
|
29
32
|
this.isVariadic = this.node.dotDotDotToken !== undefined;
|
|
30
33
|
this.isNullable = this.getIsNullable();
|
|
31
34
|
this.isOptional =
|
|
32
|
-
this.isVariadic || // if
|
|
35
|
+
this.isVariadic || // if argument has ...
|
|
33
36
|
(this.defaultValue === undefined && // if argument has a default value that couldn't be resolved.
|
|
34
37
|
this.node.initializer !== undefined) ||
|
|
35
38
|
this.isNullable || // if argument is nullable
|
|
36
39
|
this.node.questionToken !== undefined; // if argument has ?
|
|
40
|
+
if (this.deprecated !== undefined && !this.isOptional) {
|
|
41
|
+
throw new IntrospectionError(`argument ${this.name} is required and cannot be deprecated at ${AST.getNodePosition(this.node)}.`);
|
|
42
|
+
}
|
|
37
43
|
const decoratorArguments = this.ast.getDecoratorArgument(this.node, ARGUMENT_DECORATOR, "object");
|
|
38
44
|
if (decoratorArguments) {
|
|
39
45
|
this.ignore = decoratorArguments.ignore;
|
|
@@ -99,6 +105,7 @@ export class DaggerArgument extends Locatable {
|
|
|
99
105
|
return {
|
|
100
106
|
name: this.name,
|
|
101
107
|
description: this.description,
|
|
108
|
+
deprecated: this.deprecated,
|
|
102
109
|
type: this.type,
|
|
103
110
|
isVariadic: this.isVariadic,
|
|
104
111
|
isNullable: this.isNullable,
|
|
@@ -14,12 +14,14 @@ export declare class DaggerEnumValue extends Locatable implements DaggerEnumBase
|
|
|
14
14
|
name: string;
|
|
15
15
|
value: string;
|
|
16
16
|
description: string;
|
|
17
|
+
deprecated?: string;
|
|
17
18
|
private symbol;
|
|
18
19
|
constructor(node: ts.EnumMember, ast: AST);
|
|
19
20
|
toJSON(): {
|
|
20
21
|
name: string;
|
|
21
22
|
value: string;
|
|
22
23
|
description: string;
|
|
24
|
+
deprecated: string | undefined;
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
export declare class DaggerEnum extends Locatable implements DaggerEnumBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAA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,MAAM;;;;;;CAQP;AAED,qBAAa,UAAW,SAAQ,SAAU,YAAW,cAAc;IAQ/D,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IARf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,gBAAgB,CAAK;IAEpC,OAAO,CAAC,MAAM,CAAW;gBAGN,IAAI,EAAE,EAAE,CAAC,eAAe,EACxB,GAAG,EAAE,GAAG;IAgB3B,MAAM;;;;;CAOP"}
|
|
@@ -7,6 +7,7 @@ export class DaggerEnumValue extends Locatable {
|
|
|
7
7
|
name;
|
|
8
8
|
value;
|
|
9
9
|
description;
|
|
10
|
+
deprecated;
|
|
10
11
|
symbol;
|
|
11
12
|
constructor(node, ast) {
|
|
12
13
|
super(node);
|
|
@@ -14,7 +15,9 @@ export class DaggerEnumValue extends Locatable {
|
|
|
14
15
|
this.ast = ast;
|
|
15
16
|
this.symbol = this.ast.getSymbolOrThrow(this.node.name);
|
|
16
17
|
this.name = this.node.name.getText();
|
|
17
|
-
|
|
18
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
19
|
+
this.description = description;
|
|
20
|
+
this.deprecated = deprecated;
|
|
18
21
|
const initializer = this.node.initializer;
|
|
19
22
|
if (!initializer) {
|
|
20
23
|
throw new IntrospectionError(`enum ${this.name} at ${AST.getNodePosition(this.node)} has no value set to its member.`);
|
|
@@ -26,6 +29,7 @@ export class DaggerEnumValue extends Locatable {
|
|
|
26
29
|
name: this.name,
|
|
27
30
|
value: this.value,
|
|
28
31
|
description: this.description,
|
|
32
|
+
deprecated: this.deprecated,
|
|
29
33
|
};
|
|
30
34
|
}
|
|
31
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enumBase.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/enumBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAAE,CAAA;AAE1E,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAA"}
|
|
1
|
+
{"version":3,"file":"enumBase.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/enumBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,oBAAoB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,CAAA;CAAE,CAAA;AAE1E,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;CAAE,CAAA"}
|
|
@@ -14,12 +14,14 @@ export declare class DaggerEnumClassValue extends Locatable implements DaggerEnu
|
|
|
14
14
|
name: string;
|
|
15
15
|
value: string;
|
|
16
16
|
description: string;
|
|
17
|
+
deprecated?: string;
|
|
17
18
|
private symbol;
|
|
18
19
|
constructor(node: ts.PropertyDeclaration, ast: AST);
|
|
19
20
|
toJSON(): {
|
|
20
21
|
name: string;
|
|
21
22
|
value: string;
|
|
22
23
|
description: string;
|
|
24
|
+
deprecated: string | undefined;
|
|
23
25
|
};
|
|
24
26
|
}
|
|
25
27
|
export declare class DaggerEnumClass extends Locatable implements DaggerEnumBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enumClass.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/enumClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,CAAA;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAA;CAAE,CAAA;AAE5E,qBAAa,oBACX,SAAQ,SACR,YAAW,mBAAmB;
|
|
1
|
+
{"version":3,"file":"enumClass.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/enumClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAA;AACnD,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,CAAA;CAAE,CAAA;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAAA;CAAE,CAAA;AAE5E,qBAAa,oBACX,SAAQ,SACR,YAAW,mBAAmB;IAU5B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IATf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IAE1B,OAAO,CAAC,MAAM,CAAW;gBAGN,IAAI,EAAE,EAAE,CAAC,mBAAmB,EAC5B,GAAG,EAAE,GAAG;IAiB3B,MAAM;;;;;;CAQP;AAED,qBAAa,eAAgB,SAAQ,SAAU,YAAW,cAAc;IAQpE,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IARf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,qBAAqB,CAAK;IAEzC,OAAO,CAAC,MAAM,CAAW;gBAGN,IAAI,EAAE,EAAE,CAAC,gBAAgB,EACzB,GAAG,EAAE,GAAG;IAuB3B,MAAM;;;;;CAOP"}
|
|
@@ -8,6 +8,7 @@ export class DaggerEnumClassValue extends Locatable {
|
|
|
8
8
|
name;
|
|
9
9
|
value;
|
|
10
10
|
description;
|
|
11
|
+
deprecated;
|
|
11
12
|
symbol;
|
|
12
13
|
constructor(node, ast) {
|
|
13
14
|
super(node);
|
|
@@ -15,7 +16,9 @@ export class DaggerEnumClassValue extends Locatable {
|
|
|
15
16
|
this.ast = ast;
|
|
16
17
|
this.name = this.node.name.getText();
|
|
17
18
|
this.symbol = this.ast.getSymbolOrThrow(this.node.name);
|
|
18
|
-
|
|
19
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
20
|
+
this.description = description;
|
|
21
|
+
this.deprecated = deprecated;
|
|
19
22
|
const initializer = this.node.initializer;
|
|
20
23
|
if (!initializer) {
|
|
21
24
|
throw new Error("Dagger enum value has no value set");
|
|
@@ -27,6 +30,7 @@ export class DaggerEnumClassValue extends Locatable {
|
|
|
27
30
|
name: this.name,
|
|
28
31
|
value: this.value,
|
|
29
32
|
description: this.description,
|
|
33
|
+
deprecated: this.deprecated,
|
|
30
34
|
};
|
|
31
35
|
}
|
|
32
36
|
}
|
|
@@ -13,6 +13,7 @@ export declare class DaggerFunction extends Locatable {
|
|
|
13
13
|
private readonly ast;
|
|
14
14
|
name: string;
|
|
15
15
|
description: string;
|
|
16
|
+
deprecated?: string;
|
|
16
17
|
private _returnTypeRef?;
|
|
17
18
|
returnType?: TypeDef<TypeDefKind>;
|
|
18
19
|
arguments: DaggerArguments;
|
|
@@ -28,6 +29,7 @@ export declare class DaggerFunction extends Locatable {
|
|
|
28
29
|
toJSON(): {
|
|
29
30
|
name: string;
|
|
30
31
|
description: string;
|
|
32
|
+
deprecated: string | undefined;
|
|
31
33
|
alias: string | undefined;
|
|
32
34
|
arguments: DaggerArguments;
|
|
33
35
|
returnType: TypeDef<TypeDefKind> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAGxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,eAAe,CAAA;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,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E;IAoBzB,mBAAmB,CAAC,UAAU,EAAE,UAAU;IAuB1C,MAAM;;;;;;;;CAUd"}
|
|
@@ -8,6 +8,7 @@ export class DaggerFunction extends Locatable {
|
|
|
8
8
|
ast;
|
|
9
9
|
name;
|
|
10
10
|
description;
|
|
11
|
+
deprecated;
|
|
11
12
|
_returnTypeRef;
|
|
12
13
|
returnType;
|
|
13
14
|
arguments = {};
|
|
@@ -22,7 +23,9 @@ export class DaggerFunction extends Locatable {
|
|
|
22
23
|
this.symbol = this.ast.getSymbolOrThrow(node.name);
|
|
23
24
|
this.signature = this.ast.getSignatureFromFunctionOrThrow(node);
|
|
24
25
|
this.name = this.node.name.getText();
|
|
25
|
-
|
|
26
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
27
|
+
this.description = description;
|
|
28
|
+
this.deprecated = deprecated;
|
|
26
29
|
const functionArguments = this.ast.getDecoratorArgument(this.node, FUNCTION_DECORATOR, "object");
|
|
27
30
|
if (functionArguments) {
|
|
28
31
|
if (typeof functionArguments === "string") {
|
|
@@ -85,6 +88,7 @@ export class DaggerFunction extends Locatable {
|
|
|
85
88
|
return {
|
|
86
89
|
name: this.name,
|
|
87
90
|
description: this.description,
|
|
91
|
+
deprecated: this.deprecated,
|
|
88
92
|
alias: this.alias,
|
|
89
93
|
arguments: this.arguments,
|
|
90
94
|
returnType: this.returnType,
|
|
@@ -13,6 +13,7 @@ export declare class DaggerInterfaceFunction extends Locatable {
|
|
|
13
13
|
private readonly ast;
|
|
14
14
|
name: string;
|
|
15
15
|
description: string;
|
|
16
|
+
deprecated?: string;
|
|
16
17
|
private _returnTypeRef?;
|
|
17
18
|
returnType?: TypeDef<TypeDefKind>;
|
|
18
19
|
arguments: DaggerArguments;
|
|
@@ -26,6 +27,7 @@ export declare class DaggerInterfaceFunction extends Locatable {
|
|
|
26
27
|
toJSON(): {
|
|
27
28
|
name: string;
|
|
28
29
|
description: string;
|
|
30
|
+
deprecated: string | undefined;
|
|
29
31
|
arguments: DaggerArguments;
|
|
30
32
|
returnType: TypeDef<TypeDefKind> | undefined;
|
|
31
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaceFunction.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/interfaceFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,CAAA;CACxC,CAAA;AAED,qBAAa,uBAAwB,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"interfaceFunction.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/interfaceFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAkB,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,IAAI,EAAE,MAAM,GAAG,uBAAuB,CAAA;CACxC,CAAA;AAED,qBAAa,uBAAwB,SAAQ,SAAS;IAelD,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAff,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,cAAc,CAAC,CAAQ;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IACjC,SAAS,EAAE,eAAe,CAAK;IACtC,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,SAAS,CAAC,CAAc;IAGzB,KAAK,EAAE,SAAS,CAAA;IAChB,KAAK,EAAE,SAAS,CAAA;gBAGJ,IAAI,EAAE,EAAE,CAAC,iBAAiB,GAAG,EAAE,CAAC,eAAe,EAC/C,GAAG,EAAE,GAAG;IA6CpB,aAAa,IAAI,MAAM,EAAE;IAqBzB,mBAAmB,CAAC,UAAU,EAAE,UAAU;IAuB1C,MAAM;;;;;;;CASd"}
|
|
@@ -8,6 +8,7 @@ export class DaggerInterfaceFunction extends Locatable {
|
|
|
8
8
|
ast;
|
|
9
9
|
name;
|
|
10
10
|
description;
|
|
11
|
+
deprecated;
|
|
11
12
|
_returnTypeRef;
|
|
12
13
|
returnType;
|
|
13
14
|
arguments = {};
|
|
@@ -25,7 +26,9 @@ export class DaggerInterfaceFunction extends Locatable {
|
|
|
25
26
|
}
|
|
26
27
|
this.name = this.node.name.getText();
|
|
27
28
|
this.symbol = this.ast.getSymbolOrThrow(this.node.name);
|
|
28
|
-
|
|
29
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
30
|
+
this.description = description;
|
|
31
|
+
this.deprecated = deprecated;
|
|
29
32
|
// If it's a method signature, we can directly use it to get the signature props
|
|
30
33
|
// If it's a property kind signature, we need to get the signature from the type
|
|
31
34
|
// Examle:
|
|
@@ -81,6 +84,7 @@ export class DaggerInterfaceFunction extends Locatable {
|
|
|
81
84
|
return {
|
|
82
85
|
name: this.name,
|
|
83
86
|
description: this.description,
|
|
87
|
+
deprecated: this.deprecated,
|
|
84
88
|
arguments: this.arguments,
|
|
85
89
|
returnType: this.returnType,
|
|
86
90
|
};
|
|
@@ -24,6 +24,7 @@ export declare class DaggerObject extends Locatable implements DaggerObjectBase
|
|
|
24
24
|
private readonly ast;
|
|
25
25
|
name: string;
|
|
26
26
|
description: string;
|
|
27
|
+
deprecated?: string;
|
|
27
28
|
_constructor: DaggerConstructor | undefined;
|
|
28
29
|
methods: DaggerFunctions;
|
|
29
30
|
properties: DaggerProperties;
|
|
@@ -36,6 +37,7 @@ export declare class DaggerObject extends Locatable implements DaggerObjectBase
|
|
|
36
37
|
toJSON(): {
|
|
37
38
|
name: string;
|
|
38
39
|
description: string;
|
|
40
|
+
deprecated: string | undefined;
|
|
39
41
|
constructor: DaggerConstructor | undefined;
|
|
40
42
|
methods: DaggerFunctions;
|
|
41
43
|
properties: DaggerProperties;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEpD,OAAO,EAAkB,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAkB,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;GAYG;AACH,qBAAa,YAAa,SAAQ,SAAU,YAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"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